| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 162 | All time: 8,944 This week: 488 | ||||
| Version | License | PHP version | Categories | |||
| logger-light 1.0 | MIT/X Consortium ... | 5.2 | PHP 5, Files and Folders, Logging |
| Description | Author | |
This class can write messages to log files that can be rotated. |
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');
| File | Role | Description |
|---|---|---|
| Class | Independent logger class | |
| Doc. | Readme file |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 0% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.