Skip to content

Commit 31c98ae

Browse files
committed
添加配置说明
1 parent 3535825 commit 31c98ae

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,23 @@ agentx需要一个配置文件来进行使用,agentx仅会在配置指定下
2828
"logdir": "</path/to/your/log/dir>",
2929
"reconnectDelay": 10,
3030
"heartbeatInterval": 60,
31-
"reportInterval": 60
31+
"reportInterval": 60,
32+
"error_log": [
33+
"</path/to/your/error.log>",
34+
"您的应用在业务层面产生的异常日志的路径",
35+
"例如:/root/.logs/error.#YYYY#-#MM#-#DD#.log",
36+
"可选"
37+
],
38+
"packages": [
39+
"</path/to/your/package.json>",
40+
"可以输入多个package.json的路径",
41+
"可选"
42+
]
3243
}
3344
```
45+
46+
> 配置中的#YYYY#、#MM#、#DD#是通配符,如果您的异常日志是按时间生成的,请使用它。
47+
3448
保存为`config.json`。上述不明确的地方请咨询旺旺群:1406236180。
3549

3650
完成配置后,请使用以下命令进行执行:

0 commit comments

Comments
 (0)