Skip to content

Commit

Permalink
feat: debug 模式下才开启 trace 和 info 级别日志
Browse files Browse the repository at this point in the history
  • Loading branch information
forecho committed Aug 3, 2020
1 parent 7249e65 commit bb69fe3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
*/
[
'class' => 'common\components\FileTarget',
'enabled' => YII_DEBUG, // debug 模式才开启
// 日志等级
'levels' => ['info'],
// 被收集记录的额外数据
Expand All @@ -116,6 +117,7 @@
*/
[
'class' => 'common\components\FileTarget',
'enabled' => YII_DEBUG, // debug 模式才开启
// 日志等级
'levels' => ['trace'],
// 被收集记录的额外数据
Expand Down

0 comments on commit bb69fe3

Please sign in to comment.