|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not enough user ratings||Total: 146 ||All time: 8,941 This week: 306|
This class can write messages to log files that can be rotated.
It can write messages to log files by creating the log file from the scratch or appending the new messages to the end of the file.
If a log file exceeds a given limit the class can rotate the log files by moving the old log file to another with a new name based on the current date and time.
The class can keep up to a given limit of log files in the logs directory, so older log files are deleted when the limit of log files is reached.
Simple class that allows you manipulate your applications logs.
It can write/rewrite log files, rotate them and send data to email. Rotation enabled by default.
Can be used for keep compability with php 5.2
$logger = new LoggerLight();
$logger->write('This is Log Message', '/var/www/application/logs/info.log');
$logger->rewrite(date('Y-m-d H:i:s'), '/var/www/application/logs/lastrun.log');
$logger = new LoggerLight($push = true); // enable send data via email
$logger->write('This is Alert Message', '/var/www/application/logs/error.log');
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.