[FIX] Cronjob Logs
This commit is contained in:
parent
5d65f04515
commit
5027da0415
5
.gitignore
vendored
5
.gitignore
vendored
@ -9,8 +9,9 @@
|
|||||||
/public/templates/cache/**
|
/public/templates/cache/**
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
/cronjobs/logs/*.txt
|
/cronjobs/**
|
||||||
/cronjobs/logs/*.txt.*.gz
|
/cronjobs/logs/**.txt
|
||||||
|
/cronjobs/logs/**.txt.*.gz
|
||||||
/logs/*
|
/logs/*
|
||||||
|
|
||||||
# Test configs
|
# Test configs
|
||||||
|
|||||||
@ -68,7 +68,7 @@ foreach ($argv as $option) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load 3rd party logging library for running crons
|
// Load 3rd party logging library for running crons
|
||||||
$log = new KLogger ( 'logs/' . $cron_name . '.txt' , KLogger::INFO );
|
$log = KLogger::instance( '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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user