log15 icon indicating copy to clipboard operation
log15 copied to clipboard

Default Lvl is LvlCrit

Open kevinburke1 opened this issue 5 years ago • 1 comments

If I write var x log15.Lvl there's not a good way to distinguish between unset and Crit, since Crit is 0.

The usual way to handle this with protobufs is to set e.g. LvlUnknown as the first iota value. Unfortunately that's probably a breaking change now.

kevinburke1 avatar Jan 09 '20 20:01 kevinburke1

I guess LvlFromString exists for this use case.

kevinburke1 avatar Jan 09 '20 20:01 kevinburke1