some cleanup and docs for the new logging system
This commit is contained in:
parent
6aa9f76a71
commit
2c145c0d22
6 changed files with 32 additions and 17 deletions
|
|
@ -13,8 +13,8 @@ save you many hours of grief.
|
|||
to be installed on your system manually. You can optionally
|
||||
just use the WebGUI runtime environment to save yourself
|
||||
the hassle of downloading all of them. You can also install
|
||||
them using testEnvironment.pl --install-modules
|
||||
The new modules you'll need to install are:
|
||||
them using testEnvironment.pl The new modules you'll need
|
||||
to install are:
|
||||
|
||||
Net::LDAP
|
||||
Date::Manip
|
||||
|
|
@ -23,14 +23,17 @@ save you many hours of grief.
|
|||
HTML::TagFilter
|
||||
HTML::Template
|
||||
Parse::PlainConfig
|
||||
HTTP::BrowserDetect
|
||||
Parse::RecDescent
|
||||
Text::Balanced
|
||||
Tie::IxHash
|
||||
Tie::CPHash
|
||||
XML::RSSLite
|
||||
XML::Simple
|
||||
|
||||
* After upgrading you'll need to create a log.conf file in your etc
|
||||
folder for the new logger. For most situations you can just copy
|
||||
log.conf.original to log.conf and you'll be fine. If you want
|
||||
to set up custom logging rules, see this web page:
|
||||
http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl/Config.html
|
||||
|
||||
|
||||
6.5.0
|
||||
--------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -349,3 +349,10 @@ In 6.3 the template system has been replaced in favor of the new template
|
|||
asset. Please see WebGUI::Asset::Template for details.
|
||||
|
||||
|
||||
5.17 WebGUI::ErrorHandler API Changed
|
||||
|
||||
In 6.6 we brought log4perl to bear on our debuging and logging needs. This had
|
||||
a slight impact on the WebGUI::ErrorHandler API. Although there are many
|
||||
changes, the only thing anyone should notice is that fatalError() was renamed
|
||||
to fatal().
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,20 @@ print "\tDeleting old templates\n" unless ($quiet);
|
|||
my $asset = WebGUI::Asset->newByDynamicClass("PBtmpl0000000000000035");
|
||||
$asset->purge;
|
||||
|
||||
#--------------------------------------------
|
||||
print "\tUpdating config file.\n" unless ($quiet);
|
||||
my $pathToConfig = '../../etc/'.$configFile;
|
||||
my $conf = Parse::PlainConfig->new('DELIM' => '=', 'FILE' => $pathToConfig, 'PURGE'=>1);
|
||||
my %newConfig;
|
||||
foreach my $key ($conf->directives) {
|
||||
unless ($key eq "logfile" || $key eq "passwordChangeLoggingEnabled" || $key eq "emailRecoveryLoggingEnabled") {
|
||||
$newConfig{$key} = $conf->get($key);
|
||||
}
|
||||
}
|
||||
$conf->purge;
|
||||
$conf->set(%newConfig);
|
||||
$conf->write;
|
||||
|
||||
|
||||
WebGUI::Session::close();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue