- or download this
$log->info("Data directory: %s", $options->{'dir'});
- or download this
my $spr = sub { my $fmt = shift; return sprintf $fmt, @_; };
- or download this
my $conf = qq!
log4perl.rootLogger = TRACE, DBAppndr
...
!;
Log::Log4perl::init( \$conf );