Keith Wang
and 1 contributors

NAME

DynGig::Util::Logger - Thread-safe logging

SYNOPSIS

 use DynGig::Util::Logger;
 
 my $time = 'utc' if open my $handle, '>>', '/some/path';

 my $logger = DynGig::Util::Logger->new
 (
     log => $handle, ## path or I/O handle, *STDOUT if undef
     time => $time,  ## 'raw', 'utc', 'local', omit timestamp if undef
 );

 $logger->write( "timestamp in %s", $time );

METHODS

write

See printf().

SEE ALSO

threads, Thread::Semaphore

NOTE

See DynGig::Util