From 68850d2c817e6d4549ec7de75a63d4678b3ee9dd Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Fri, 6 Dec 2024 18:44:09 +0700 Subject: [PATCH] Adopt new changes for notice level --- globals.go | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/globals.go b/globals.go index 40886afb..9d41bc63 100644 --- a/globals.go +++ b/globals.go @@ -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