Skip to content
Permalink
Browse files

add default logging config in Config/bootstrap.php

  • Loading branch information...
rchavik committed May 9, 2012
1 parent b71e814 commit 5c4f7415295e2588810abfa8044e0b9ffb3c8985
Showing with 28 additions and 0 deletions.
  1. +14 −0 app/Config/bootstrap.php
  2. +14 −0 lib/Cake/Console/Templates/skel/Config/bootstrap.php
@@ -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',
));
@@ -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.
You can’t perform that action at this time.