-
Notifications
You must be signed in to change notification settings - Fork 1
/
compatibility.go
63 lines (55 loc) · 1.52 KB
/
compatibility.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
package logger
import "io"
//Method Fatalf[string ...interface {}] is missing
func (l *Logger) Fatalf(s string, args ...interface{}) {
l.prepFields(1).Fatalf(s, args...)
}
func (l *Logger) Fatal(args ...interface{}) {
l.prepFields(1).Fatal(args...)
}
//Method Fatalln[...interface {}] is missing
func (l *Logger) Fatalln(msg ...interface{}) {
l.prepFields(1).Fatalln(msg...)
}
// Panic
func (l *Logger) Panic(args ...interface{}) {
l.prepFields(1).Panic(args...)
}
func (l *Logger) Panicf(s string, args ...interface{}) {
l.prepFields(1).Panicf(s, args...)
}
func (l *Logger) Panicln(msg ...interface{}) {
l.prepFields(1).Panicln(msg...)
}
// Print
func (l *Logger) Print(args ...interface{}) {
l.prepFields(1).Print(args...)
}
func (l *Logger) Printf(s string, args ...interface{}) {
l.prepFields(1).Printf(s, args...)
}
func (l *Logger) Println(msg ...interface{}) {
l.prepFields(1).Println(msg...)
}
// Flags
func (l *Logger) Flags() {
l.prepFields(1).Debug("unsupported method Flags called")
}
func (l *Logger) SetFlags(i int) {
l.prepFields(1).Debug("unsupported method SetFlags called")
}
// Output
func (l *Logger) Output(i int, s string) error {
l.prepFields(1).Debug("unsupported method Output called")
return nil
}
func (l *Logger) SetOutput(w io.Writer) {
l.prepFields(1).Debug("unsupported method SetOutput called")
}
// Prefix
func (l *Logger) Prefix() {
l.prepFields(1).Debug("unsupported method Prefix called")
}
func (l *Logger) SetPrefix(s string) {
l.prepFields(1).Debug("unsupported method SetPrefix called")
}