[CHANGE] Unified logging folder
This commit is contained in:
parent
299e062268
commit
3d244238f0
@ -1 +0,0 @@
|
||||
Logging directory for cronjobs.
|
||||
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user