[Jifty-commit] r741 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Mar 26 05:46:46 EST 2006
Author: jesse
Date: Sun Mar 26 05:46:44 2006
New Revision: 741
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Config.pm
jifty/trunk/lib/Jifty/Logger.pm
Log:
r10483 at hualien: jesse | 2006-03-26 12:46:01 +0900
* Added a "LogLevel" option to the Jifty config file, so you can more easily enable debug logging.
Modified: jifty/trunk/lib/Jifty/Config.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Config.pm (original)
+++ jifty/trunk/lib/Jifty/Config.pm Sun Mar 26 05:46:44 2006
@@ -213,6 +213,7 @@
ApplicationClass => $app_class,
CurrentUserClass => $app_class . "::CurrentUser",
ApplicationName => $app_name,
+ LogLevel => 'INFO',
Database => {
Database => $db_name,
Driver => "SQLite",
Modified: jifty/trunk/lib/Jifty/Logger.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Logger.pm (original)
+++ jifty/trunk/lib/Jifty/Logger.pm Sun Mar 26 05:46:44 2006
@@ -49,9 +49,10 @@
} elsif ( -f $log_config and -r $log_config ) {
Log::Log4perl->init($log_config);
} else {
+ my $log_level = Jifty->config->framework('LogLevel');
my %default = (
- 'log4perl.rootLogger' => "INFO,Screen",
- '#log4perl.logger.SchemaTool' => "INFO,Screen",
+ 'log4perl.rootLogger' => "$log_level,Screen",
+ '#log4perl.logger.SchemaTool' => "$log_level,Screen",
'log4perl.appender.Screen' => 'Log::Log4perl::Appender::Screen',
'log4perl.appender.Screen.stderr' => 1,
'log4perl.appender.Screen.layout' =>
More information about the Jifty-commit
mailing list