-
Notifications
You must be signed in to change notification settings - Fork 0
/
loglevel_string.go
29 lines (23 loc) · 779 Bytes
/
loglevel_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Code generated by "stringer -type=LogLevel"; DO NOT EDIT.
package chainsaw
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[TraceLevel-1]
_ = x[DebugLevel-2]
_ = x[InfoLevel-3]
_ = x[WarnLevel-4]
_ = x[ErrorLevel-5]
_ = x[FatalLevel-6]
}
const _LogLevel_name = "TraceLevelDebugLevelInfoLevelWarnLevelErrorLevelFatalLevel"
var _LogLevel_index = [...]uint8{0, 10, 20, 29, 38, 48, 58}
func (i LogLevel) String() string {
i -= 1
if i < 0 || i >= LogLevel(len(_LogLevel_index)-1) {
return "LogLevel(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _LogLevel_name[_LogLevel_index[i]:_LogLevel_index[i+1]]
}