rs / xlog

xlog is a logger for net/context aware HTTP applications
MIT License
139 stars 13 forks source link

Add a LevelFromString method to avoid implementing the switch in the project using xlog #10

Closed asticode closed 8 years ago

asticode commented 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.