Refactored logging.

This commit is contained in:
Qiang Xue 2013-07-02 22:09:25 -04:00
parent 0fa52238c5
commit 9664884e02
2 changed files with 2 additions and 5 deletions

View File

@ -13,10 +13,9 @@ return array(
'class' => 'yii\caching\FileCache', 'class' => 'yii\caching\FileCache',
), ),
'log' => array( 'log' => array(
'class' => 'yii\logging\Router',
'targets' => array( 'targets' => array(
array( array(
'class' => 'yii\logging\FileTarget', 'class' => 'yii\log\FileTarget',
'levels' => array('error', 'warning'), 'levels' => array('error', 'warning'),
), ),
), ),

View File

@ -3,7 +3,6 @@
return array( return array(
'id' => 'bootstrap', 'id' => 'bootstrap',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'preload' => array('log'),
'components' => array( 'components' => array(
'cache' => array( 'cache' => array(
'class' => 'yii\caching\FileCache', 'class' => 'yii\caching\FileCache',
@ -16,10 +15,9 @@ return array(
'bundles' => require(__DIR__ . '/assets.php'), 'bundles' => require(__DIR__ . '/assets.php'),
), ),
'log' => array( 'log' => array(
'class' => 'yii\logging\Router',
'targets' => array( 'targets' => array(
array( array(
'class' => 'yii\logging\FileTarget', 'class' => 'yii\log\FileTarget',
'levels' => array('error', 'warning'), 'levels' => array('error', 'warning'),
), ),
), ),