-
Notifications
You must be signed in to change notification settings - Fork 0
/
adaptlog.go
50 lines (43 loc) · 1.2 KB
/
adaptlog.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
package adaptlog
// ErrorLogger interface. Introduces Error logging facilities.
type ErrorLogger interface {
Error(...interface{})
Errorf(string, ...interface{})
Errorln(...interface{})
}
// WarnLogger interface. Introduces Warn logging facilities.
type WarnLogger interface {
Warn(...interface{})
Warnf(string, ...interface{})
Warnln(...interface{})
}
// InfoLogger interface. Introduces Info logging facilities.
type InfoLogger interface {
Info(...interface{})
Infof(string, ...interface{})
Infoln(...interface{})
}
// DebugLogger interface. Introduces Debug logging facilities.
type DebugLogger interface {
Debug(...interface{})
Debugf(string, ...interface{})
Debugln(...interface{})
}
// PrintLogger interface. Introduces Print logging facilities.
type PrintLogger interface {
Print(...interface{})
Printf(string, ...interface{})
Println(...interface{})
}
// FatalLogger interface. Introduce Fatal logging facilities
type FatalLogger interface {
Fatal(...interface{})
Fatalf(string, ...interface{})
Fatalln(...interface{})
}
// PanicLogger interface. Introduce Panic logging facilities
type PanicLogger interface {
Panic(...interface{})
Panicf(string, ...interface{})
Panicln(...interface{})
}