|
NAMELog::Dispatch::File::Stamped - Logging to date/time stamped filesVERSIONversion 0.12SYNOPSISuse Log::Dispatch::File::Stamped; my $file = Log::Dispatch::File::Stamped->new( name => 'file1', min_level => 'info', filename => 'Somefile.log', stamp_fmt => '%Y%m%d', mode => 'append' ); $file->log( level => 'emerg', message => "I've fallen and I can't get up\n" ); DESCRIPTIONThis module subclasses Log::Dispatch::File for logging to date/time stamped files, respecting all its configuration options.METHODS
EXAMPLESAssuming the current date and time is:% perl -e 'print scalar localtime' Sat Feb 8 13:56:13 2003 Log::Dispatch::File::Stamped->new( name => 'file', min_level => 'debug', filename => 'logfile.txt', ); This will log to file 'logfile-20030208.txt'. Log::Dispatch::File::Stamped->new( name => 'file', min_level => 'debug', filename => 'logfile.txt', stamp_fmt => '%d%H', ); This will log to file 'logfile-0813.txt'. SEE ALSOLog::Dispatch::File, POSIX.ACKNOWLEDGEMENTSDave Rolsky, author of the Log::Dispatch suite and many other fine modules on CPAN.This module was rewritten to respect all present (and future) options to Log::Dispatch::File by Karen Etheridge, <ether@cpan.org>. AUTHORS
COPYRIGHT AND LICENSEThis software is copyright (c) 2013 by Karen Etheridge.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |