Skip to content

Commit

Permalink
README: add instruction for debug logging (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: Kay Lin <[email protected]>
  • Loading branch information
RedL0tus committed Jul 17, 2020
1 parent e43e101 commit 445214c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ OPTIONS:
trigger --config "<配置文件的路径>"
```

或者启用 debug 日志:
```bash
TRIGGER_LOG=debug trigger --config "<配置文件的路径>"
```

此处的 debug 可以换成任意你想要的 log level(有 error、warn、info、debug、trace)。

配置
----

Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ Start the program
trigger --config "<path to config file>"
```

Or, start trigger with debug log enabled:
```bash
TRIGGER_LOG=debug trigger --config "<path to config file>"
```

`debug` can be replaced with any other logging level you like (including `error`, `warn`, `info`, `debug`, `trace`).

Configuration
-------------

Expand Down

0 comments on commit 445214c

Please sign in to comment.