Refactored logging.
This commit is contained in:
parent
0fa52238c5
commit
9664884e02
@ -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'),
|
||||
),
|
||||
),
|
||||
|
@ -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'),
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user