Skip to content

Commit

Permalink
close m
Browse files Browse the repository at this point in the history
  • Loading branch information
funson86 committed Jun 7, 2022
1 parent 68c33da commit 264c0fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guide-zh-CN/appendix-high.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,17 @@
],
```

- 不记录操作日志
- 默认不记录操作日志,打开操作日志需要按照如下执行

common/config/main-local.php 中将 logSystem 改成 'types' => ['login', 'db', 'error', 'console', 'mail'], 删除 'operation'
common/config/main-local.php 中将 logSystem 改成 'types' => ['operation', 'login', 'db', 'error', 'console', 'mail'], 增加 'operation', 增加操作日志会减慢系统速度

```
'logSystem' => [
'class' => 'common\components\base\LogSystem',
'queue' => false,//true, // 是否通过队列方式存数据库
'driver' => 'mysql', //'mongodb', // 存储方式,mysql数据库或mongodb数据库
'levels' => ['error', 'warning'], // 记录错误日志等级error warning info trace
'types' => [/*'operation', */'login', 'db', 'error', 'console', 'mail'], // 记录日志类型
'types' => ['operation', 'login', 'db', 'error', 'console', 'mail'], // 记录日志类型
'ignoreCodes' => [404], // 忽略错误码
],
Expand Down

0 comments on commit 264c0fc

Please sign in to comment.