Publisher review:Log-Handler module is a simple handler to log messages to log files. This module is just a simple log file handler. It's possible to define a log level for your programs and control the amount of informations that be logged to the log file.
In addition it's possible to define how you wish to open the log file, transient or permanent and if you wish you can assign the handler to check the inode of the log file. This could be very useful if a rotate mechanism moves and zip the log file but you shouldn't forget that inodes aren't available on windows.hat inode;SYNOPSIS
use Log::Handler;
my $log = Log::Handler->new( filename => $logfile, mode => 'append' );
$log->alert("foo bar");
METHODSnew()Call "new()" to create a new log handler object.
The "new()" method expected the options for the log file. The only one mandatory option is "filename". All other options will be set to a default value.
Log levelsThere are eigth log levels and thirteen methods to handle this levels:
emergency(), emerg()alert()critical(), crit()error(), err()warning(), warn()notice(), note()info()debug()
"debug()" is the highest and "emergency()" or "emerg()" is the lowest log level. You can define the log level with the options "maxlevel" and "minlevel".
The methods "note()", "warn()", "err()", "crit()" and "emerg()" are just shortcuts.
Log-Handler 0.35 is a Perl script for Modules scripts design by Jonny Schulz.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris