Merge pull request #1852 from knnniggett/cakelog
move cake log to zoneminder log folder
This commit is contained in:
commit
5dd4359b80
|
@ -100,12 +100,16 @@ App::uses('CakeLog', 'Log');
|
||||||
CakeLog::config('debug', array(
|
CakeLog::config('debug', array(
|
||||||
'engine' => 'File',
|
'engine' => 'File',
|
||||||
'types' => array('notice', 'info', 'debug'),
|
'types' => array('notice', 'info', 'debug'),
|
||||||
'file' => 'debug',
|
'file' => 'cake_debug',
|
||||||
));
|
));
|
||||||
CakeLog::config('error', array(
|
CakeLog::config('error', array(
|
||||||
'engine' => 'File',
|
'engine' => 'File',
|
||||||
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
|
'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@');
|
Configure::write('ZM_CONFIG', '@ZM_CONFIG@');
|
||||||
|
|
Loading…
Reference in New Issue