- or download this
log4perl.rootLogger=INFO, LOGFILE
- or download this
log4perl.rootLogger=DEBUG, LOGFILE
- or download this
use Log::Log4perl qw(:easy);
Log::Log4perl->easy_init( { level => $debug ? $DEBUG : $INFO,
file => ">>$log_file",
layout => '[%-5p] [%d{yy-MM-dd hh:mm:ss.S
+SSSSS}][%r] %m - line: %L%n' } );
- or download this
INFO( 'Start' );
...
#LOGDIE( 'No destination directory defined!' ) unless $dest_dir;
DEBUG( 'Dir: ', $dest_dir ) if $debug;