Questions about this topic? Sign up to ask in the talk tab.

Perl/Helpful Libraries/Throughput/Usage/Log

From NetSec
Jump to: navigation, search
  • A simple logger
my $logger = new Log();
$logger->error("an error has occured");
  • Output defaults to STDERR but can be set to files in the constructor or using accessors.
  • Log also supports info, warn and digest:
$logger->info("info message");
There is also a digest log, which is never called externally, but the output of info warn and error are all outputted to the digest file, set with: