To use the custom appenders, add this code in your init plugin for example Choose among appenders, for each type you must specify the relative parameters, how to documentation of log4php..
MB, My Logger ROLLING APPENDER => true, My Logger ROLLING MAX BACKUP INDEX => 5 ) $mylogger = My Logger get instance $this->logger = $mylogger->getLogger for debug you add $this->logger->debug $this->logger->debug >..
For mail appender., My Logger MAIL TO =>., My Logger MAIL SUBJECT =>., My Logger THRESHOLD => My Logger LEVEL DEBUG Sets the logger level to DEBUG.
This means that logging requests with the lower than DEBUG will not be logged by the root logger ) $mylogger = My Logger get instance >.. ** SET Logger ** level describes the severity of message.
You can set level of logger, add the parameter.
FATAL Highest Very error events that will lead the application to abort..
Potentially harmful situations which still allow the application to continue running..
Informational messages that highlight the progress of the application at coarse-grained level..
If do you want put in frontend, add this code MB, My Logger ROLLING APPENDER => true, My Logger ROLLING MAX BACKUP INDEX => 5, My Logger THRESHOLD => My Logger LEVEL DEBUG ) $mylogger = new My Logger $logger = $mylogger->getLogger $logger->debug >.
For more info read API documents of log4php Apache Log4php Docs ** Configuration ** You can set path file to export your logger, in the plugin's settings...
Read more