-
Notifications
You must be signed in to change notification settings - Fork 1
/
sugar.go
91 lines (73 loc) · 2.17 KB
/
sugar.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
package sugar
// Debug package mainLogger
func Debug(args ...interface{}) {
mainLogger.zapSugar.Debug(args...)
}
// Debugf package mainLogger
func Debugf(template string, args ...interface{}) {
mainLogger.zapSugar.Debugf(template, args...)
}
// Debugw package mainLogger
func Debugw(msg string, keysAndValues ...interface{}) {
mainLogger.zapSugar.Debugw(msg, keysAndValues...)
}
// Info package mainLogger
func Info(args ...interface{}) {
mainLogger.zapSugar.Info(args...)
}
// Infof package mainLogger
func Infof(template string, args ...interface{}) {
mainLogger.zapSugar.Infof(template, args...)
}
// Infow package mainLogger
func Infow(msg string, keysAndValues ...interface{}) {
mainLogger.zapSugar.Infow(msg, keysAndValues...)
}
// Warn package mainLogger
func Warn(args ...interface{}) {
mainLogger.zapSugar.Warn(args...)
}
// Warnf package mainLogger
func Warnf(template string, args ...interface{}) {
mainLogger.zapSugar.Warnf(template, args...)
}
// Warnw package mainLogger
func Warnw(msg string, keysAndValues ...interface{}) {
mainLogger.zapSugar.Warnw(msg, keysAndValues...)
}
// Error package mainLogger
func Error(args ...interface{}) {
mainLogger.zapSugar.Error(args...)
}
// Errorf package mainLogger
func Errorf(template string, args ...interface{}) {
mainLogger.zapSugar.Errorf(template, args...)
}
// Errorw package mainLogger
func Errorw(msg string, keysAndValues ...interface{}) {
mainLogger.zapSugar.Errorw(msg, keysAndValues...)
}
// Fatal package mainLogger
func Fatal(args ...interface{}) {
mainLogger.zapSugar.Fatal(args...)
}
// Fatalf package mainLogger
func Fatalf(template string, args ...interface{}) {
mainLogger.zapSugar.Fatalf(template, args...)
}
// Fatalw package mainLogger
func Fatalw(msg string, keysAndValues ...interface{}) {
mainLogger.zapSugar.Fatalw(msg, keysAndValues...)
}
// Panic package mainLogger
func Panic(args ...interface{}) {
mainLogger.zapSugar.Panic(args...)
}
// Panicf package mainLogger
func Panicf(template string, args ...interface{}) {
mainLogger.zapSugar.Panicf(template, args...)
}
// Panicw package mainLogger
func Panicw(msg string, keysAndValues ...interface{}) {
mainLogger.zapSugar.Panicw(msg, keysAndValues...)
}