[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 // 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); $log->LogDebug('Starting ' . $cron_name);
// Load the start time for later runtime calculations for monitoring // Load the start time for later runtime calculations for monitoring

View File

@ -5,7 +5,7 @@ class Logger {
private $logging = false; private $logging = false;
public function __construct($config) { public function __construct($config) {
if ($config['logging']['enabled'] && $config['logging']['level'] > 0) { 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->logging = true;
$this->floatStartTime = microtime(true); $this->floatStartTime = microtime(true);
} }