Skip to content

Commit d45de03

Browse files
authored
feat: trace log level color with gray, same as debug (#7)
1 parent d41190e commit d45de03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formatter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const (
204204

205205
func getColorByLevel(level logrus.Level) int {
206206
switch level {
207-
case logrus.DebugLevel:
207+
case logrus.DebugLevel, logrus.TraceLevel:
208208
return colorGray
209209
case logrus.WarnLevel:
210210
return colorYellow

0 commit comments

Comments
 (0)