[CHANGE] Unified logging folder

This commit is contained in:
Sebastian Grewe 2014-04-14 18:24:35 +02:00
parent 299e062268
commit 3d244238f0
3 changed files with 2 additions and 3 deletions

View File

@ -1 +0,0 @@
Logging directory for cronjobs.

View File

@ -63,7 +63,7 @@ foreach ($argv as $option) {
}
// Load 3rd party logging library for running crons
$log = KLogger::instance( 'logs/' . $cron_name, KLogger::INFO );
$log = KLogger::instance( BASEPATH . '../logs/' . $cron_name, KLogger::INFO );
$log->LogDebug('Starting ' . $cron_name);
// Load the start time for later runtime calculations for monitoring

View File

@ -5,7 +5,7 @@ class Logger {
private $logging = false;
public function __construct($config) {
if ($config['logging']['enabled'] && $config['logging']['level'] > 0) {
$this->KLogger = KLogger::instance($config['logging']['path'], $config['logging']['level']);
$this->KLogger = KLogger::instance($config['logging']['path'] . '/website', $config['logging']['level']);
$this->logging = true;
$this->floatStartTime = microtime(true);
}