You are here: Foswiki>Tasks Web>Item9855 (05 Jul 2015, GeorgeClark)Edit Attach

Item9855: Debug log written to bin or not written at all if DebugFileName not set

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: FoswikiLogger
Branches:
Reported By: KerstinPuschke
Waiting For:
Last Change By: GeorgeClark
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
 

ItemTemplate edit

Summary Debug log written to bin or not written at all if DebugFileName not set
ReportedBy KerstinPuschke
Codebase 1.1.0
SVN Range
AppliesTo Engine
Component FoswikiLogger
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r6 - 05 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy