Closed asticode closed 8 years ago
If the log level is a string in the package using xlog, it's easier to have a LevelFromString method to transform it into a proper xlog.Level without having to implement the switch itself.
xlog
LevelFromString
xlog.Level
switch
If the log level is a string in the package using
xlog
, it's easier to have aLevelFromString
method to transform it into a properxlog.Level
without having to implement theswitch
itself.