Seshat - Perl Extension for writing modules
"Seshat, her who writes..."
use Seshat; my $lh = Seshat->new($log_filename[, PARAM => VALUE [, ...]]); $res = $lh->write($string,$nl_bool);
Seshat is a module designed to handle more than one log, and log files shared by two or more processes. It is a concurrency safe system, and implements extra information about the script that is writing the log.
Creates a new object that uses th $log_filename as the log file
Parameter description:
DATE_FORMAT => $string
Defines the format of the date that is written to the log file Types: %a -> short day %A -> long day %b -> short month %B -> long month %d -> month day %g -> last 2 dig of year %G -> year %c -> long date %D -> short date %F -> short date (inverted) %H -> hour %M -> minutes %S -> seconds ex: "%a %b %G - %H:%M:%S" Tue Oct 2000 - 13:59:41
LOG_LEVEL => [0..5]
Defines the amount of information about the caller script that is written to the log file
Writes the $string to the log file , and terminates the line or not ($nl_bool)
Sugestions accepted
Bruno Tavares (bat@isp.novis.pt)
perl(1), Seshat::Parallel(1)
To install Seshat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Seshat
CPAN shell
perl -MCPAN -e shell install Seshat
For more information on module installation, please visit the detailed CPAN module installation guide.