Skeeve has asked for the wisdom of the Perl Monks concerning the following question:
I am working on a project that makes extensive use of Log4Perl.
Now I have to extend the program a bit so that the last message logged is copied into a file. So my idea was to make a new appender using Log::Dispatch::File with the mode "write".
Unfortunately Log::Dispatch::Write expects the filename to be defined at logger creation time and in my case, this filename is not known at that point and there is no official way to set the filename afterwards.
Now I'm searching for ideas of how to solve this. Copying Log::Dispatch::File and creating a Log::Dispatch::FileLazy (or something) might be an idea, but are there better ones?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Log::Log4perl / Log::Dispatch::File individual filenames. seeking advice.
by Anonymous Monk on Feb 12, 2009 at 10:41 UTC | |
by Skeeve (Parson) on Feb 12, 2009 at 11:03 UTC |