mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
add default logging config in Config/bootstrap.php
This commit is contained in:
parent
b71e814191
commit
5c4f741529
2 changed files with 28 additions and 0 deletions
|
@ -151,3 +151,17 @@ Configure::write('Dispatcher.filters', array(
|
|||
'AssetDispatcher',
|
||||
'CacheDispatcher'
|
||||
));
|
||||
|
||||
/**
|
||||
* Configures default file logging options
|
||||
*/
|
||||
CakeLog::config('debug', array(
|
||||
'engine' => 'FileLog',
|
||||
'types' => array('notice', 'info', 'debug'),
|
||||
'file' => 'debug',
|
||||
));
|
||||
CakeLog::config('error', array(
|
||||
'engine' => 'FileLog',
|
||||
'types' => array('error', 'warning'),
|
||||
'file' => 'error',
|
||||
));
|
||||
|
|
|
@ -91,3 +91,17 @@ Configure::write('Dispatcher.filters', array(
|
|||
'AssetDispatcher',
|
||||
'CacheDispatcher'
|
||||
));
|
||||
|
||||
/**
|
||||
* Configures default file logging options
|
||||
*/
|
||||
CakeLog::config('debug', array(
|
||||
'engine' => 'FileLog',
|
||||
'scopes' => array('notice', 'info', 'debug'),
|
||||
'file' => 'debug',
|
||||
));
|
||||
CakeLog::config('error', array(
|
||||
'engine' => 'FileLog',
|
||||
'scopes' => array('error', 'warning'),
|
||||
'file' => 'error',
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue