gnmic icon indicating copy to clipboard operation
gnmic copied to clipboard

Log messages don't have a level set

Open nlgotz opened this issue 1 year ago • 1 comments

When managing logs of gnmic containers, there's no log levels, which makes it really difficult to parse and determine if the log messages are "good" info type logs or "warn"/"error"/"critical" errors.

It would be nice to have logs that can have a level attached to them to make it easy to alert on an increase of critical logs or something similar.

nlgotz avatar Dec 20 '24 15:12 nlgotz

That's because gNMIc uses golang's default logger which didn't support structured logging until go1.21. There is a bit of work needed to switch to slog

karimra avatar Dec 30 '24 15:12 karimra