class.Logger.php3 1.0 review

Download
by rbytes.net on

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

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().

SYNOPSIS

include("class.Logger.php3");
$logger = new Logger("/path/to/log/file/root_directory");

$logger->initialize(
array(
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");

$logger->close_logs();
exit;

class.Logger.php3 1.0 search tags