diff --git a/logger/core.go b/logger/core.go index d6ce4d0..3632398 100644 --- a/logger/core.go +++ b/logger/core.go @@ -300,7 +300,7 @@ func getLoggerNormalPrefix(lvl level, skipCaller int, opts Options) string { b.WriteString(getArgLogLevel(lvl, opts)) b.WriteString(datetimeString) if !opts.HideAllArgs && !opts.HideArgCaller { - b.WriteString(" \x1b[4m") + b.WriteString(StyleUnderscore) b.WriteString(getArgCaller(skipCaller)) b.WriteString(StyleReset) b.WriteString(":") @@ -352,7 +352,7 @@ func getLoggerJson(lvl level, skipCaller int, opts Options, format string, v ... } func getArgLogLevel(lvl level, opts Options) string { - color := "\x1b[1m" + color := StyleBold if opts.DisablePrefixColors { color += level("").colorLevel() } else { diff --git a/logger/enum.go b/logger/enum.go index 8860c26..c8f40c5 100644 --- a/logger/enum.go +++ b/logger/enum.go @@ -46,7 +46,7 @@ const ( ) const ( StyleReset = "\x1b[0m" - StyleBright = "\x1b[1m" + StyleBold = "\x1b[1m" StyleDim = "\x1b[2m" StyleUnderscore = "\x1b[4m" StyleBlink = "\x1b[5m"