File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -127,11 +127,9 @@ func Fmt(
127
127
multilineVal = s
128
128
}
129
129
130
- // Basic keyStyle off of the level makes it easy to distinguish individual
131
- // entries in a fast stream of logs where some are multi-line.
132
- // See logrus for an example.
133
- keyStyle := levelStyle (ent .Level ).Copy ().Bold (false )
134
- equalsStyle := levelStyle (ent .Level ).Copy ().Faint (true )
130
+ keyStyle := timeStyle .Copy ()
131
+ // Help users distinguish logs by keeping some color in the equal signs.
132
+ equalsStyle := levelStyle (ent .Level )
135
133
136
134
for i , f := range ent .Fields {
137
135
if i < len (ent .Fields ) {
@@ -169,7 +167,7 @@ var (
169
167
levelDebugStyle = renderer .NewStyle ().Foreground (lipgloss .Color ("#ffffff" ))
170
168
levelInfoStyle = renderer .NewStyle ().Foreground (lipgloss .Color ("#0091FF" ))
171
169
levelWarnStyle = renderer .NewStyle ().Foreground (lipgloss .Color ("#FFCF0D" ))
172
- levelErrorStyle = renderer .NewStyle ().Foreground (lipgloss .Color ("#FF5A0D" )). Bold ( true )
170
+ levelErrorStyle = renderer .NewStyle ().Foreground (lipgloss .Color ("#FF5A0D" ))
173
171
)
174
172
175
173
func levelStyle (level slog.Level ) lipgloss.Style {
You can’t perform that action at this time.
0 commit comments