Commit 665b4ca5 authored by 郑伟's avatar 郑伟

日志级别定义

parent 90136f8f
......@@ -30,6 +30,19 @@
所有日志必须包含以下字段
* `LEVEL`: 日志等级。`DEBUG`, `INFO`, `WARNING`, `ERROR`等。
- debug
记录调试信息,用于线上排查故障。
- info
记录正常的业务信息.
- warning
系统存在问题但不影响系统正常使用, 可关注此问题并在下一个release里修复.
- error
系统存在影响用户正常使用的严重问题,需要立即上线修复.
* `LOGID`: trace用,暂时空缺,填空字符串。
* `TIME`: 日志记录时间。使用[ISO8601标准](https://en.wikipedia.org/wiki/ISO_8601),要求包含时区`+08:00`。根据需要决定是否精确到毫秒。完整例子如`2015-10-14T17:13:00+08:00`。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment