-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathilogger.go
27 lines (23 loc) · 955 Bytes
/
ilogger.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
package logbus
type NewILogger interface {
Debug(msg string, fields ...Field)
Info(msg string, fields ...Field)
Warn(msg string, fields ...Field)
Error(msg string, fields ...Field)
DPanic(msg string, fields ...Field)
Panic(msg string, fields ...Field)
Fatal(msg string, fields ...Field)
DebugWithChannel(c string, msg string, fields ...Field)
InfoWithChannel(c string, msg string, fields ...Field)
WarnWithChannel(c string, msg string, fields ...Field)
ErrorWithChannel(c string, msg string, fields ...Field)
DPanicWithChannel(c string, msg string, fields ...Field)
PanicWithChannel(c string, msg string, fields ...Field)
FatalWithChannel(c string, msg string, fields ...Field)
GDebugDepth(depth int, msg string, v ...Field)
GInfoDepth(depth int, msg string, v ...Field)
GWarnDepth(depth int, msg string, v ...Field)
GErrorDepth(depth int, msg string, v ...Field)
GFatalDepth(depth int, msg string, v ...Field)
syncDepthLogger()
}