Skip to content

Commit

Permalink
Remove value() function from LogLevel (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmiyake authored and bmoylan committed Feb 20, 2019
1 parent 5cfa99e commit 4418969
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions wlog/levels.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,3 @@ const (
ErrorLevel LogLevel = "error"
FatalLevel LogLevel = "fatal"
)

func (l LogLevel) value() int {
switch l {
case DebugLevel:
return 0
case InfoLevel:
return 1
case WarnLevel:
return 2
case ErrorLevel:
return 3
case FatalLevel:
return 4
default:
return -1
}
}

0 comments on commit 4418969

Please sign in to comment.