class.Logger.php3 1.0 review

by on

License: GPL (GNU General Public License)
File size: 7K
Developer: CDI
0 stars award from

class.Logger.php3 is used to maintain persistant log files in PHP3 applications as efficiently as possible.

Using Logger, your programs can append log entries to as many different files as you need, using only 1 fopen() call and 1 fclose() call per log file.

Logger's primary use is for debugging personal programs when you can't or don't want to log via error_log().


$logger = new Logger("/path/to/log/file/root_directory");

ERRLOG => 'error_log',
DEBUGLOG => 'debug_log'

$logger->log(ERRLOG,"This is an error_log entry");
$logger->log(DEBUGLOG,"This is logged to the debug_log");


class.Logger.php3 1.0 keywords