Skip to content

Commit 445214c

Browse files
committed
README: add instruction for debug logging (#5)
Signed-off-by: Kay Lin <i@v2bv.net>
1 parent e43e101 commit 445214c

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

README-zh_CN.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ OPTIONS:
5353
trigger --config "<配置文件的路径>"
5454
```
5555

56+
或者启用 debug 日志:
57+
```bash
58+
TRIGGER_LOG=debug trigger --config "<配置文件的路径>"
59+
```
60+
61+
此处的 debug 可以换成任意你想要的 log level(有 error、warn、info、debug、trace)。
62+
5663
配置
5764
----
5865

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ Start the program
3434
trigger --config "<path to config file>"
3535
```
3636

37+
Or, start trigger with debug log enabled:
38+
```bash
39+
TRIGGER_LOG=debug trigger --config "<path to config file>"
40+
```
41+
42+
`debug` can be replaced with any other logging level you like (including `error`, `warn`, `info`, `debug`, `trace`).
43+
3744
Configuration
3845
-------------
3946

0 commit comments

Comments
 (0)