labstack / gommon

Common packages for Go
MIT License
540 stars 101 forks source link

add ParseLevel func to return level const #53

Open jamesgoodhouse opened 1 year ago

jamesgoodhouse commented 1 year ago

this will allow consumers of this package to not have to do their own logic to convert known log levels to the constants defined for each one within this package.

jamesgoodhouse commented 1 year ago

if anyone needs this functionality for now, i've got a small lib with it — https://github.com/houseofgood/echohelpers