/**
* 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>");
|