Skip to content

Commit

Permalink
Renamed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Cataldo committed Feb 8, 2024
1 parent 0ab9cd8 commit edbf7b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions logger/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(":")
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion logger/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const (
)
const (
StyleReset = "\x1b[0m"
StyleBright = "\x1b[1m"
StyleBold = "\x1b[1m"
StyleDim = "\x1b[2m"
StyleUnderscore = "\x1b[4m"
StyleBlink = "\x1b[5m"
Expand Down

0 comments on commit edbf7b0

Please sign in to comment.