-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry_levels.go
213 lines (176 loc) · 4.91 KB
/
entry_levels.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
// This file was generated with level_generator. DO NOT EDIT
package verbose
import (
"os"
"fmt"
)
// Debug - Log Debug message
func (e *Entry) Debug(v ...interface{}) {
e.log(LogLevelDebug, fmt.Sprint(v...))
return
}
// Info - Log Info message
func (e *Entry) Info(v ...interface{}) {
e.log(LogLevelInfo, fmt.Sprint(v...))
return
}
// Notice - Log Notice message
func (e *Entry) Notice(v ...interface{}) {
e.log(LogLevelNotice, fmt.Sprint(v...))
return
}
// Warning - Log Warning message
func (e *Entry) Warning(v ...interface{}) {
e.log(LogLevelWarning, fmt.Sprint(v...))
return
}
// Error - Log Error message
func (e *Entry) Error(v ...interface{}) {
e.log(LogLevelError, fmt.Sprint(v...))
return
}
// Critical - Log Critical message
func (e *Entry) Critical(v ...interface{}) {
e.log(LogLevelCritical, fmt.Sprint(v...))
return
}
// Alert - Log Alert message
func (e *Entry) Alert(v ...interface{}) {
e.log(LogLevelAlert, fmt.Sprint(v...))
return
}
// Emergency - Log Emergency message
func (e *Entry) Emergency(v ...interface{}) {
e.log(LogLevelEmergency, fmt.Sprint(v...))
return
}
// Fatal - Log Fatal message
func (e *Entry) Fatal(v ...interface{}) {
e.log(LogLevelFatal, fmt.Sprint(v...))
os.Exit(1)
return
}
// Panic - Log Panic message
func (e *Entry) Panic(v ...interface{}) {
e.log(LogLevelEmergency, fmt.Sprint(v...))
return
}
// Print - Log Print message
func (e *Entry) Print(v ...interface{}) {
e.log(LogLevelInfo, fmt.Sprint(v...))
return
}
// Printf friendly functions
// Debugf - Log formatted Debug message
func (e *Entry) Debugf(m string, v ...interface{}) {
e.log(LogLevelDebug, fmt.Sprintf(m, v...))
return
}
// Infof - Log formatted Info message
func (e *Entry) Infof(m string, v ...interface{}) {
e.log(LogLevelInfo, fmt.Sprintf(m, v...))
return
}
// Noticef - Log formatted Notice message
func (e *Entry) Noticef(m string, v ...interface{}) {
e.log(LogLevelNotice, fmt.Sprintf(m, v...))
return
}
// Warningf - Log formatted Warning message
func (e *Entry) Warningf(m string, v ...interface{}) {
e.log(LogLevelWarning, fmt.Sprintf(m, v...))
return
}
// Errorf - Log formatted Error message
func (e *Entry) Errorf(m string, v ...interface{}) {
e.log(LogLevelError, fmt.Sprintf(m, v...))
return
}
// Criticalf - Log formatted Critical message
func (e *Entry) Criticalf(m string, v ...interface{}) {
e.log(LogLevelCritical, fmt.Sprintf(m, v...))
return
}
// Alertf - Log formatted Alert message
func (e *Entry) Alertf(m string, v ...interface{}) {
e.log(LogLevelAlert, fmt.Sprintf(m, v...))
return
}
// Emergencyf - Log formatted Emergency message
func (e *Entry) Emergencyf(m string, v ...interface{}) {
e.log(LogLevelEmergency, fmt.Sprintf(m, v...))
return
}
// Fatalf - Log formatted Fatal message
func (e *Entry) Fatalf(m string, v ...interface{}) {
e.log(LogLevelFatal, fmt.Sprintf(m, v...))
os.Exit(1)
return
}
// Panicf - Log formatted Panic message
func (e *Entry) Panicf(m string, v ...interface{}) {
e.log(LogLevelEmergency, fmt.Sprintf(m, v...))
return
}
// Printf - Log formatted Print message
func (e *Entry) Printf(m string, v ...interface{}) {
e.log(LogLevelInfo, fmt.Sprintf(m, v...))
return
}
// Println friendly functions
// Debugln - Log Debug message with newline
func (e *Entry) Debugln(v ...interface{}) {
e.log(LogLevelDebug, e.sprintlnn(v...))
return
}
// Infoln - Log Info message with newline
func (e *Entry) Infoln(v ...interface{}) {
e.log(LogLevelInfo, e.sprintlnn(v...))
return
}
// Noticeln - Log Notice message with newline
func (e *Entry) Noticeln(v ...interface{}) {
e.log(LogLevelNotice, e.sprintlnn(v...))
return
}
// Warningln - Log Warning message with newline
func (e *Entry) Warningln(v ...interface{}) {
e.log(LogLevelWarning, e.sprintlnn(v...))
return
}
// Errorln - Log Error message with newline
func (e *Entry) Errorln(v ...interface{}) {
e.log(LogLevelError, e.sprintlnn(v...))
return
}
// Criticalln - Log Critical message with newline
func (e *Entry) Criticalln(v ...interface{}) {
e.log(LogLevelCritical, e.sprintlnn(v...))
return
}
// Alertln - Log Alert message with newline
func (e *Entry) Alertln(v ...interface{}) {
e.log(LogLevelAlert, e.sprintlnn(v...))
return
}
// Emergencyln - Log Emergency message with newline
func (e *Entry) Emergencyln(v ...interface{}) {
e.log(LogLevelEmergency, e.sprintlnn(v...))
return
}
// Fatalln - Log Fatal message with newline
func (e *Entry) Fatalln(v ...interface{}) {
e.log(LogLevelFatal, e.sprintlnn(v...))
os.Exit(1)
return
}
// Panicln - Log Panic message with newline
func (e *Entry) Panicln(v ...interface{}) {
e.log(LogLevelEmergency, e.sprintlnn(v...))
return
}
// Println - Log Print message with newline
func (e *Entry) Println(v ...interface{}) {
e.log(LogLevelInfo, e.sprintlnn(v...))
return
}