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',
),
'log' => array(
'class' => 'yii\logging\Router',
'targets' => array(
array(
'class' => 'yii\logging\FileTarget',
'class' => 'yii\log\FileTarget',
'levels' => array('error', 'warning'),
),
),

View File

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