mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-24 21:00:49 +08:00
fix
This commit is contained in:
@@ -32,11 +32,9 @@ type LogFormat struct{}
|
||||
// Format implements logrus.Formatter
|
||||
func (f LogFormat) Format(entry *logrus.Entry) ([]byte, error) {
|
||||
buf := new(bytes.Buffer)
|
||||
buf.WriteByte('[')
|
||||
buf.WriteString(getLogLevelColorCode(entry.Level))
|
||||
buf.WriteString(strings.ToUpper(entry.Level.String()))
|
||||
buf.WriteString(colorReset)
|
||||
buf.WriteString("] ")
|
||||
buf.WriteString(entry.Message)
|
||||
buf.WriteString(" \n")
|
||||
return buf.Bytes(), nil
|
||||
|
||||
Reference in New Issue
Block a user