Subject: | Appender::File should not insist on regular files |
Currently, Log::Log4perl::Appender::File calls die if the specified
log file is not a regular file which IMHO considerably reduces
flexibility without any major advantage.
The attached 1-char-patch fixes this.
Regards,
Peter
Subject: | appender_file_allow_any.diff |
--- Log/Log4perl/Appender/File.org 2013-02-07 13:53:48.920947195 +0100
+++ Log/Log4perl/Appender/File.pm 2013-02-07 13:53:56.485038428 +0100
@@ -94,7 +94,7 @@ sub file_open {
umask($self->{umask}) if defined $self->{umask};
- my $didnt_exist = ! -f $self->{filename};
+ my $didnt_exist = ! -e $self->{filename};
if($self->{syswrite}) {
sysopen $fh, "$self->{filename}", $sysmode or