Skip to content

Commit

Permalink
add default logging config in Config/bootstrap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed May 11, 2012
1 parent b71e814 commit 5c4f741
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/Config/bootstrap.php
Expand Up @@ -151,3 +151,17 @@
'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',
));
14 changes: 14 additions & 0 deletions lib/Cake/Console/Templates/skel/Config/bootstrap.php
Expand Up @@ -91,3 +91,17 @@
'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',
));

0 comments on commit 5c4f741

Please sign in to comment.