Skip to content

Commit

Permalink
Adopt new changes for notice level
Browse files Browse the repository at this point in the history
  • Loading branch information
cuonglm committed Dec 6, 2024
1 parent 35e864d commit 68850d2
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions globals.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,27 @@ var (
// LevelColors are used by ConsoleWriter's consoleDefaultFormatLevel to color
// log levels.
LevelColors = map[Level]int{
TraceLevel: colorBlue,
DebugLevel: 0,
InfoLevel: colorGreen,
WarnLevel: colorYellow,
ErrorLevel: colorRed,
FatalLevel: colorRed,
PanicLevel: colorRed,
TraceLevel: colorBlue,
DebugLevel: 0,
InfoLevel: colorGreen,
WarnLevel: colorYellow,
ErrorLevel: colorRed,
FatalLevel: colorRed,
PanicLevel: colorRed,
NoticeLevel: colorYellow,
}

// FormattedLevels are used by ConsoleWriter's consoleDefaultFormatLevel
// for a short level name.
FormattedLevels = map[Level]string{
TraceLevel: "TRC",
DebugLevel: "DBG",
InfoLevel: "INF",
WarnLevel: "WRN",
ErrorLevel: "ERR",
FatalLevel: "FTL",
PanicLevel: "PNC",
TraceLevel: "TRC",
DebugLevel: "DBG",
InfoLevel: "INF",
WarnLevel: "WRN",
ErrorLevel: "ERR",
FatalLevel: "FTL",
PanicLevel: "PNC",
NoticeLevel: "NTC",
}

// TriggerLevelWriterBufferReuseLimit is a limit in bytes that a buffer is dropped
Expand Down

0 comments on commit 68850d2

Please sign in to comment.