Log::Fast

Fast and flexible logger
Download

Log::Fast Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Alex Efros
  • Publisher web site:
  • http://search.cpan.org/~powerman/

Log::Fast Tags


Log::Fast Description

Log::Fast is a very fast logger, designed for use in applications with thousands high-level events/operations per second (like network servers with thousands clients or web spiders which download hundreds url per second).For example, on Core2Duo sending about 5000 messages to log on enabled log levels or 20000 messages on disabled log levels in one second will slow down your application only by 2-3%.Comparing to some other CPAN modules, this one (in average): faster than Log::Dispatch in about 45 times, faster than Log::Handler in about 15 times, faster than Sys::Syslog in about 7 times, and slower than Log::Syslog::Fast in about 2 times.SYNOPSIS use Log::Fast; $LOG = Log::Fast->global(); $LOG = Log::Fast->new({ level => 'WARN', prefix => '%D %T ', type => 'fh', fh => \*STDOUT, }); use Sys::Syslog qw( LOG_DAEMON ); $LOG->config({ prefix => '', type => 'unix', path => '/dev/log', facility => LOG_DAEMON, add_timestamp => 1, add_hostname => 1, hostname => 'somehost', ident => 'someapp', add_pid => 1, pid => $$, }); $LOG->ident('anotherapp'); $LOG->level('INFO'); $LOG->ERR('Some error'); $LOG->WARN('Some warning'); $LOG->NOTICE('user %s logged in', $user); $LOG->INFO('data loaded'); $LOG->DEBUG('user %s have %d things', $user, sub { return SlowOperation_GetAmountOfThingsFor($user); });Product's homepage


Log::Fast Related Software