Skip to content

Commit

Permalink
Merge pull request #6 from revitteth/feat/trace-from-string
Browse files Browse the repository at this point in the history
feat: add string to lvl conversion for trace
  • Loading branch information
AlexeyAkhunov authored Oct 10, 2022
2 parents 80ad463 + c46b9ea commit eda025a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v3/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ func (l Lvl) String() string {
// Useful for parsing command line args and configuration files.
func LvlFromString(lvlString string) (Lvl, error) {
switch lvlString {
case "trace":
return LvlTrace, nil
case "debug", "dbug":
return LvlDebug, nil
case "info":
Expand Down

0 comments on commit eda025a

Please sign in to comment.