Turn on log4php.debug only when required
... | ... | @@ -22,10 +22,16 @@ require_once('config.php'); |
// Performance Optimization: Configure the log folder | ||
@include_once('config.performance.php'); | ||
global $PERFORMANCE_CONFIG; | ||
if(isset($PERFORMANCE_CONFIG) && isset($PERFORMANCE_CONFIG['LOG4PHP_DEBUG']) && $PERFORMANCE_CONFIG['LOG4PHP_DEBUG']) { | ||
define('LOG4PHP_DIR', 'libraries/log4php.debug'); | ||
} else { | ||
define('LOG4PHP_DIR', 'libraries/log4php'); | ||
} | ||
// END | ||
define('LOG4PHP_DEFAULT_INIT_OVERRIDE', true); | ||
define('LOG4PHP_DIR', 'libraries/log4php.debug'); | ||
|
||
require_once(LOG4PHP_DIR.'/Logger.php'); | ||
Logger::configure('log4php.properties'); | ||
?> | ||
\ No newline at end of file | ||
?> |