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