Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
backend
docs
Commits
549c09ee
Commit
549c09ee
authored
9 years ago
by
柯阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified
parent
ffc9c62b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
log.md
log.md
+5
-3
No files found.
log.md
View file @
549c09ee
...
...
@@ -3,6 +3,7 @@
## 版本修订
1.
**2015-10-14**
创建
2.
**2015-10-20**
SYS中添加错误号
## 适用范围
...
...
@@ -40,13 +41,13 @@
记录调试信息,用于线上排查故障。
- `INFO`
记录正常的业务信息
.
记录正常的业务信息
。`INFO`日志对于一个请求打印且只打印一条日志,包含下述的`SYS`, `APP`, `TIMER`字段。
- `WARNING`
系统存在问题但不影响系统正常使用, 可关注此问题并在下一个release里修复
.
系统存在问题但不影响系统正常使用, 可关注此问题并在下一个release里修复
。
- `ERROR`
系统存在影响用户正常使用的严重问题,需要立即上线修复
.
系统存在影响用户正常使用的严重问题,需要立即上线修复
。
* `LOGID`: trace用,暂时空缺,填空字符串。
* `TIME`: 日志记录时间。使用[ISO8601标准](https://en.wikipedia.org/wiki/ISO_8601),要求包含时区`+08:00`。根据需要决定是否精确到毫秒。完整例子如`2015-10-14T17:13:00+08:00`。
...
...
@@ -64,6 +65,7 @@
* `session_id`: 用户登陆后必须填写。否则不填写。
* `log_host`: 打印该日志所在机器的内网IP。
* `user_ip`: 用户的外网IP。
* `errno`: 错误号。无错误填0。出错或出现未知异常时要求填写非0值。
3.
`APP`
字段
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment