diff --git a/include/logging.php b/include/logging.php index 1eb848c7f01b89dc61747ad0a4dae887c4898710..0a4a077bf9390048590ffebe27c050f1ce04101a 100644 --- a/include/logging.php +++ b/include/logging.php @@ -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 +?>