Merge pull request #1852 from knnniggett/cakelog

move cake log to zoneminder log folder
This commit is contained in:
Isaac Connor 2017-04-14 21:09:50 -04:00 committed by GitHub
commit 5dd4359b80
1 changed files with 6 additions and 2 deletions

View File

@ -100,12 +100,16 @@ App::uses('CakeLog', 'Log');
CakeLog::config('debug', array(
'engine' => 'File',
'types' => array('notice', 'info', 'debug'),
'file' => 'debug',
'file' => 'cake_debug',
));
CakeLog::config('error', array(
'engine' => 'File',
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
'file' => 'error',
'file' => 'cake_error',
));
CakeLog::config('custom_path', array(
'engine' => 'File',
'path' => '@ZM_LOGDIR@'
));
Configure::write('ZM_CONFIG', '@ZM_CONFIG@');