Perlbug::Log is a Perl module for generic logging/debugging functions to all Perlbug.
Expected to be called from sub-classes, this needs some more work to cater comfortably for non-method calls.
Debug level can be modified via the environment variable: Perlbug_Debug
SYNOPSIS
my $o_log = Perlbug::Log->new('log' => $log, 'res' => $res);
$o_log->append('res', "other datan");
$o_log->append('log', "some datan");
$o_log->append('res', "OKn");
my $a_data = $o_log->read('res');
print $a_data; # 'other datanOKn'
METHODS
new
Create new Perlbug::Log object
my $obj = Perlbug::Log->new('log' => $log, 'tmp => $tmp, 'debug' => 2);
files
Return files based on key (or all)
my @files = $o_log->files();
handle
Return handle based on key
my $fh = $o_log->handle('log');
Product's homepage
Requirements:
· Perl