We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0382cd commit 5d77857Copy full SHA for 5d77857
text_formatter.go
@@ -107,7 +107,7 @@ func (f *TextFormatter) init(entry *Entry) {
107
}
108
// Get the max length of the level text
109
for _, level := range AllLevels {
110
- levelTextLength := utf8.RuneCount([]byte(level.String()))
+ levelTextLength := utf8.RuneCountInString(level.String())
111
if levelTextLength > f.levelTextMaxLength {
112
f.levelTextMaxLength = levelTextLength
113
0 commit comments