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
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)
Bruno Tavares (email@example.com)