Le 31/07/2010 02:25, Mike Schilli a écrit :
> On Wed, 28 Jul 2010, [email protected] 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
Le 10/07/2010 08:02, Mike Schilli a écrit :
> On Tue, 6 Jul 2010, Foudil wrote:
>
>> In order to log to a tmp directory (that we want to remove later), we
>> create an appender in a script that we add to our project's loggers:
>> Log::Log4perl->init_and_wa
# to close them explicitly. Especially under NFS, where deleted but still
# opened files are kept by the kernel as '.nfsxxx' (see "NFS silly
# rename")
$local_appender->file_close(); # (undocumented, look into the code)
rmtree($spool_tmp, {error => \my $err})