Item9855: Debug log written to bin or not written at all if DebugFileName not set
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
If
$Foswiki::cfg{Log}{Implementation}
and
$Foswiki::cfg{DebugFileName}
are not set, the debug log shows up in
bin
instead of
$Foswiki::cfg{Log}{Dir}
or
working/logs
.
If
$Foswiki::cfg{Log}{Implementation} = 'Foswiki::Logger::Compatibility'
is set and
$Foswiki::cfg{DebugFileName}
is not set, the debug file does not show up at all.
This item may or may not be related to
Item9854.
--
KerstinPuschke - 20 Oct 2010
While the first part seems to be fixed, the second issue (Compatibility mode) still exists.
--
KerstinPuschke - 29 Aug 2011
I don't think this can happen in 1.2. The Logger code assigns a default filename if one is not set:
$defaultLogDir = "$Foswiki::cfg{DataDir}/" if $Foswiki::cfg{DataDir};
...
$log = $Foswiki::cfg{DebugFileName}
|| $defaultLogDir . 'debug%DATE%.txt';
}
--
GeorgeClark - 31 May 2014