Le 31/07/2010 02:25, Mike Schilli a écrit : > On Wed, 28 Jul 2010, foudil.ne...@bigfoot.com wrote: > >> then the temporary log file seems to get >> created in the beginning... leading to an error because of the missing >> temporary directory... > > The file appender lets you delay creation of the file until you write to > it, check the create_at_logtime option in > > > http://search.cpan.org/~mschilli/Log-Log4perl-1.29/lib/Log/Log4perl/Appender/File.pm
Hi Mike, I was aware of that option, and I thought it was inappropriate in our context. Now I have tested it and I can tell it's inappropriate: we start logging prior to the temporary appender creation. So if we set create_at_logtime and put all the temp app config in the main log config, l4p tries to create the temp logfile before the creation of the temp dir meant to contain the temp logfile... >> That's the expected behaviour, but the code snippets comes from a single >> script, so there should not be any other reference to the temporary appender. > > Can you post a standalone script that reproduces the error? It took some time, but here it is (attachment).
test_l4p_nfs.pl
Description: Perl program
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel