Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Based on the pathname to the log file, I am guessing this is unixy in nature. If the log file is left open by Log4Perl (am not saying it is or isn't), and it is moved out of the way by some external (or even internal process), until the file is reopened by your process, it will continue to write to the old file handle, which may point to the newly renamed file, or a block of bytes on the disk no longer accessible from any directory entry. I think that you need to get Log4Perl (or your process) to automatically reopen the file, or....
--MidLifeXis In reply to Re: Log4perl is not writing into the log file when log file contents are cleared
by MidLifeXis
|
|