-
Notifications
You must be signed in to change notification settings - Fork 7
/
log.go
149 lines (119 loc) · 3.84 KB
/
log.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
package log
// Default is a default Logger instance
var Default = New()
// IsDebugEnabled indicates whether output message
func IsDebugEnabled() bool {
return Default.IsDebugEnabled()
}
// IsInfoEnabled indicates whether output message
func IsInfoEnabled() bool {
return Default.IsInfoEnabled()
}
// IsPrintEnabled indicates whether output message
func IsPrintEnabled() bool {
return Default.IsPrintEnabled()
}
// IsWarnEnabled indicates whether output message
func IsWarnEnabled() bool {
return Default.IsWarnEnabled()
}
// IsErrorEnabled indicates whether output message
func IsErrorEnabled() bool {
return Default.IsErrorEnabled()
}
// IsPanicEnabled indicates whether output message
func IsPanicEnabled() bool {
return Default.IsPanicEnabled()
}
// IsFatalEnabled indicates whether output message
func IsFatalEnabled() bool {
return Default.IsFatalEnabled()
}
// IsDisabled indicates whether output message
func IsDisabled() bool {
return Default.IsDisabled()
}
// Debug outputs message, Arguments are handled by fmt.Sprint
func Debug(obj ...interface{}) {
Default.Debug(obj...)
}
// Info outputs message, Arguments are handled by fmt.Sprint
func Info(obj ...interface{}) {
Default.Info(obj...)
}
// Print outputs message, Arguments are handled by fmt.Sprint
func Print(obj ...interface{}) {
Default.Print(obj...)
}
// Warn outputs message, Arguments are handled by fmt.Sprint
func Warn(obj ...interface{}) {
Default.Warn(obj...)
}
// Error outputs message, Arguments are handled by fmt.Sprint
func Error(obj ...interface{}) {
Default.Error(obj...)
}
// Panic outputs message, and followed by a call to panic() Arguments are handled by fmt.Sprint
func Panic(obj ...interface{}) {
Default.Panic(obj...)
}
// Fatal outputs message, and followed by a call to os.Exit(1) Arguments are handled by fmt.Sprint
func Fatal(obj ...interface{}) {
Default.Fatal(obj...)
}
// Debugln outputs message, Arguments are handled by fmt.Sprintln
func Debugln(obj ...interface{}) {
Default.Debugln(obj...)
}
// Infoln outputs message, Arguments are handled by fmt.Sprintln
func Infoln(obj ...interface{}) {
Default.Infoln(obj...)
}
// Println outputs message, Arguments are handled by fmt.Sprintln
func Println(obj ...interface{}) {
Default.Println(obj...)
}
// Warnln outputs message, Arguments are handled by fmt.Sprintln
func Warnln(obj ...interface{}) {
Default.Warnln(obj...)
}
// Errorln outputs message, Arguments are handled by fmt.Sprintln
func Errorln(obj ...interface{}) {
Default.Errorln(obj...)
}
// Panicln outputs message and followed by a call to panic(), Arguments are handled by fmt.Sprintln
func Panicln(obj ...interface{}) {
Default.Panicln(obj...)
}
// Fatalln outputs message and followed by a call to os.Exit(1), Arguments are handled by fmt.Sprintln
func Fatalln(obj ...interface{}) {
Default.Fatalln(obj...)
}
// Debugf outputs message, Arguments are handled by fmt.Sprintf
func Debugf(msg string, args ...interface{}) {
Default.Debugf(msg, args...)
}
// Infof outputs message, Arguments are handled by fmt.Sprintf
func Infof(msg string, args ...interface{}) {
Default.Infof(msg, args...)
}
// Printf outputs message, Arguments are handled by fmt.Sprintf
func Printf(msg string, args ...interface{}) {
Default.Printf(msg, args...)
}
// Warnf outputs message, Arguments are handled by fmt.Sprintf
func Warnf(msg string, args ...interface{}) {
Default.Warnf(msg, args...)
}
// Errorf outputs message, Arguments are handled by fmt.Sprintf
func Errorf(msg string, args ...interface{}) {
Default.Errorf(msg, args...)
}
// Panicf outputs message and followed by a call to panic(), Arguments are handled by fmt.Sprintf
func Panicf(msg string, args ...interface{}) {
Default.Panicf(msg, args...)
}
// Fatalf outputs message and followed by a call to os.Exit(1), Arguments are handled by fmt.Sprintf
func Fatalf(msg string, args ...interface{}) {
Default.Fatalf(msg, args...)
}