浏览代码

Fix specification of backend config in log rotation example

The example in "Internal log rotation" includes the tuple
{name, "error.log"}

This apparently should be

{file, "error.log"}

as seen in other config examples in README.md.
pull/227/head
Derek Brown 10 年前
父节点
当前提交
9ec3499e9b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      README.md

+ 1
- 1
README.md 查看文件

@ -219,7 +219,7 @@ use internal rotation, use the 'size', 'date' and 'count' values in the file
backend's config: backend's config:
```erlang ```erlang
[{name, "error.log"}, {level, error}, {size, 10485760}, {date, "$D0"}, {count, 5}]
[{file, "error.log"}, {level, error}, {size, 10485760}, {date, "$D0"}, {count, 5}]
``` ```
This tells lager to log error and above messages to "error.log" and to This tells lager to log error and above messages to "error.log" and to

正在加载...
取消
保存