Subject: | Feature request for Log::Log4perl::Appender::File |
Hi,
now:
use Log::Log4perl::Appender::File;
use Log::Log4perl::DateFormat;
my $file = Log::Log4perl::Appender::File->new(
filename => 'file.log',
mode => 'append',
autoflush => 1,
umask => 0027,
);
my $time = time();
my $format = Log::Log4perl::DateFormat->new("yyyy-MM-dd HH:mm:ss");
$file->log(message => $format->format($time)." Log me\n");
wish:
my $file = Log::Log4perl::Appender::File->new(
filename => 'file.log',
mode => 'append',
autoflush => 1,
umask => 0027,
dateformat => "yyyy-MM-dd HH:mm:ss",
);
$file->log(timestamp => 1, message => "Log me\n");
Is there a chance? :)
Cheers,
Jonny