diff --git a/config/main.php b/config/main.php index ba8a0c4..3612d15 100644 --- a/config/main.php +++ b/config/main.php @@ -18,6 +18,7 @@ 'class' => 'i8\modules\v1\ApiModule' ] ], + 'bootstrap' => ['log'], 'components' => [ 'db' => $db, 'user' => [ @@ -54,6 +55,15 @@ ] ] ], + 'log' => [ + 'traceLevel' => YII_DEBUG ? 3 : 0, + 'targets' => [ + [ + 'class' => 'yii\log\SyslogTarget', + 'levels' => ['error', 'warning'], + ], + ], + ], 'cache' => [ 'class' => 'yii\caching\MemCache', 'useMemcached' => true