[FIX] Cronjob Logs

This commit is contained in:
Sebastian Grewe 2014-02-07 14:03:31 +01:00
parent 5d65f04515
commit 5027da0415
2 changed files with 4 additions and 3 deletions

5
.gitignore vendored
View File

@ -9,8 +9,9 @@
/public/templates/cache/**
# Logs
/cronjobs/logs/*.txt
/cronjobs/logs/*.txt.*.gz
/cronjobs/**
/cronjobs/logs/**.txt
/cronjobs/logs/**.txt.*.gz
/logs/*
# Test configs

View File

@ -68,7 +68,7 @@ foreach ($argv as $option) {
}
// 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);
// Load the start time for later runtime calculations for monitoring