Log::Easy

Log::Easy is an easy to use, feature rich general purpose logging utility.
Download

Log::Easy Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Theo Lengyel
  • Publisher web site:
  • http://search.cpan.org/~dirt/Easy-Options-0.01_01/lib/Easy/Options.pm

Log::Easy Tags


Log::Easy Description

Log::Easy is an easy to use, feature rich general purpose logging utility. Log::Easy is an easy to use, feature rich general purpose logging utility.SYNOPSIS use Log::Easy; $log = new Log::Easy;$log->write(, < LOG_LEVEL >, @message );This is the main function for this package. If the first argument is a hash reference, it is taken as options to the logger for this log call ONLY, and may contain values for ANY of the options that the logger knows how to use. The first argument after the optional OPTIONS hash MUST BE the log level for this log. If it ends up being something that is not a log_level, then a default log_level is assigned to the write call. If the $log->write($log_level, @message) is equal to or greater than the $log->log_level() then it will be output, otherwise it will not.$log->clone( );make a duplicate of the supplied $data or this log object if no data is supplied. Uses data dumper to duplicate original, therefore CODE references are not necessarily handled, although the contents of $log->prefix() will be assigned to the new (cloned) object from the original. returns the cloned objectOPTIONS$log->n();set the message terminator for this log object, each log message output will be terminated with the contents of this setting (default "n")$log->log();set the log object to use for actual write operation, this occurrs AFTER the decision as to whether or not this log message will be processed. This allows one to set the log object to another logging module (such as running under apache)$log->log_file();set the output file for messages processed through this log object ( can be a file handle or file path, default => 'STDERR')$log->log_level();set the thrshold for which messages will actiually be logged, only messages with a log_level set to a (nuerically) higher value will be output (default => WARN)$log->dump_refs();set the behavior when references are encountered in the message list contents (default => 1) if true, use data dumper to dump out the references$log->handle_fatals();if true, log module will terminate program execution on any log calls marked as FATAL or CRIT (CRIT for now , default => 1)$log->exclusive();if true, and set to a colon delimited set of log_level indicators, this log object will only output its message if the current log call is for a level listed in exclusive (default => undef)$log->stack_trace();if true (and this log message is of sufficient log_level to be output), issue a pretty little stack trace for the log call$log->email(); #NOT YET IMPLEMENTEDfor a log level of MESSAGE, send the log message to the email address listed here, if not set, and a MESSAGE log comes in, then send the email to the owner of the process$log->prefix();set ther prefix that each log message will have, may be either a string, or a CODE ref Requirements: · Perl


Log::Easy Related Software