log icon indicating copy to clipboard operation
log copied to clipboard

allow users to create Levels directly from integers

Open paulangton opened this issue 3 years ago • 0 comments

If users want to create a log.Level directly from an integer they need to wait for log.SetLevel to fail or write their own checks for whether a log level integer is valid. Instead we could provide FromInt to do this work upstream where it has access to package-private levelStrings and levelNames

paulangton avatar Jan 17 '21 21:01 paulangton