1
# See bottom of file for license and copyright information
2
package Foswiki::Configure::Checkers::LogFileName;
6
use base 'Foswiki::Configure::Checker';
8
use Foswiki::Configure::Checker;
9
use Foswiki::Configure::Load;
14
if ( $Foswiki::cfg{LogFileName}
15
&& $Foswiki::cfg{LogFileName}!~/^NOT SET/ )
17
my $logFile = $Foswiki::cfg{LogFileName} || "";
18
$logFile =~ s/%DATE%/DATE/;
19
Foswiki::Configure::Load::expandValue($logFile);
20
my $e = $this->checkCanCreateFile($logFile);
21
$e = $this->ERROR($e) if $e;
25
$Foswiki::cfg{LogFileName} =~ s/^NOT SET/$Foswiki::cfg{DataDir}/g;
26
return $this->guessed(0);
34
# Foswiki - The Free and Open Source Wiki, http://foswiki.org/
36
# Copyright (C) 2008 Foswiki Contributors. All Rights Reserved.
37
# Foswiki Contributors are listed in the AUTHORS file in the root
38
# of this distribution. NOTE: Please extend that file, not this notice.
40
# Additional copyrights apply to some or all of the code in this
43
# Copyright (C) 2000-2006 TWiki Contributors. All Rights Reserved.
44
# TWiki Contributors are listed in the AUTHORS file in the root
45
# of this distribution. NOTE: Please extend that file, not this notice.
47
# This program is free software; you can redistribute it and/or
48
# modify it under the terms of the GNU General Public License
49
# as published by the Free Software Foundation; either version 2
50
# of the License, or (at your option) any later version. For
51
# more details read LICENSE in the root of this distribution.
53
# This program is distributed in the hope that it will be useful,
54
# but WITHOUT ANY WARRANTY; without even the implied warranty of
55
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
57
# As per the GPL, removal of this notice is prohibited.