Compare commits

..

No commits in common. "main" and "v0.0.1" have entirely different histories.
main ... v0.0.1

2 changed files with 1 additions and 3 deletions

View File

@ -5,5 +5,5 @@ Liteyuki Logger for Go, 用于轻雪项目统一日志格式
## 安装
```shell
go get github.com/LiteyukiStudio/go-logger
go get -u github.com/liteyukistudio/go-logger
```

View File

@ -80,8 +80,6 @@ func (f *LiteyukiFormatter) Format(entry *logrus.Entry) ([]byte, error) {
}
levelText := Color(color, "["+logLevel+"]")
// 格式化日志信息并添加颜色
// 去除message两端的【】
message = message[1 : len(message)-1]
b.WriteString(fmt.Sprintf("%s %s %s\n", timeText, levelText, message))
return b.Bytes(), nil
}