fattahsafa has asked for the wisdom of the Perl Monks concerning the following question:
Thanks, Abed.use Log::Log4perl qw(get_logger :levels); our $logger = Log::Log4perl->get_logger(__PACKAGE__); $logger->level($INFO); # Appenders our $appender = Log::Log4perl::Appender->new( "Log::Dispatch::File", filename => "Automation.log", mode => "append", ); $logger->add_appender($appender); $logger->info("Logger");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Configuring log4perl to print TimeStamp
by jellisii2 (Hermit) on Dec 10, 2014 at 13:32 UTC | |
by fattahsafa (Sexton) on Dec 12, 2014 at 21:14 UTC | |
|
Re: Configuring log4perl to print TimeStamp
by Anonymous Monk on Dec 10, 2014 at 10:41 UTC |