Recommend this page to a friend! |
Download .zip |
Info | View files (3) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2011-03-01 (5 years ago) | Not yet rated by the users | Total: 387 | All time: 6,317 This week: 953 |
Version | License | PHP version | Categories | |||
simple-class-for-log 1.0 | GNU General Publi... | 5.0 | PHP 5, Logging |
Description | Author | |
This class can log entries to files. |
/** * Simple class for logs * @description: Example use */ // include class require_once 'Logger.class.php'; // create object of logger class // write in log.txt // log file be overwritten $obLog = new Logger('log.txt'); // or // log file be NOT overwritten $obLog = new Logger('log.txt','r+'); // log write // simple use // log write be date and memory use by default ( separator \n) $obLog->LogIt('Start script'); // without memory use $obLog->LogIt('Start script',true,"\n","a+",false); // with r+ mode $obLog->LogIt('Start script',true,"\n","r+"); // write in html file $obLog = new Logger('log.html'); $obLog->LogIt('Start script',true,"<br>"); |
Files |
File | Role | Description |
---|---|---|
Example.php | Example | Example use |
Logger.class.php | Class | Logger class |
README | Doc. | README |
simple-class-for-log-2011-03-01.zip 1KB | |
simple-class-for-log-2011-03-01.tar.gz 1KB | |
Install with Composer |
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.