Skip to content

Commit 2f2b60b

Browse files
authored
Update README_CN.md
1 parent 1118f52 commit 2f2b60b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README_CN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func main() {
7878
consoleConfig := &go_logger.ConsoleConfig{
7979
Color: true, // 命令行输出字符串是否显示颜色
8080
JsonFormat: true, // 命令行输出字符串是否格式化
81-
Format: "" // 如果输出的不是 json 字符串,JsonFormat: false, 自定义输出的格式
81+
Format: "", // 如果输出的不是 json 字符串,JsonFormat: false, 自定义输出的格式
8282
}
8383
// 添加 console 为 logger 的一个输出
8484
logger.Attach("console", go_logger.LOGGER_LEVEL_DEBUG, consoleConfig)
@@ -96,7 +96,7 @@ func main() {
9696
MaxLine : 100000, // 文件最大行数,默认 0 不限制
9797
DateSlice : "d", // 文件根据日期切分, 支持 "Y" (年), "m" (月), "d" (日), "H" (时), 默认 "no", 不切分
9898
JsonFormat: true, // 写入文件的数据是否 json 格式化
99-
Format: "" // 如果写入文件的数据不 json 格式化,自定义日志格式
99+
Format: "", // 如果写入文件的数据不 json 格式化,自定义日志格式
100100
}
101101
// 添加 file 为 logger 的一个输出
102102
logger.Attach("file", go_logger.LOGGER_LEVEL_DEBUG, fileConfig)
@@ -132,10 +132,10 @@ Logger Message
132132
**配置 Format 参数**:
133133
```
134134
consoleConfig := &go_logger.ConsoleConfig{
135-
Format: "%millisecond_format% [%level_string%] %body%"
135+
Format: "%millisecond_format% [%level_string%] %body%",
136136
}
137137
fileConfig := &go_logger.FileConfig{
138-
Format: "%millisecond_format% [%level_string%] %body%"
138+
Format: "%millisecond_format% [%level_string%] %body%",
139139
}
140140
```
141141
**输出结果**:

0 commit comments

Comments
 (0)