DynGig::Util::Logger - Thread-safe logging
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 );
See printf().
threads, Thread::Semaphore
See DynGig::Util
To install DynGig::Util, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DynGig::Util
CPAN shell
perl -MCPAN -e shell install DynGig::Util
For more information on module installation, please visit the detailed CPAN module installation guide.