-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlevel.go
More file actions
57 lines (43 loc) · 1.35 KB
/
level.go
File metadata and controls
57 lines (43 loc) · 1.35 KB
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
package logger
func D(msg string, keyValues ...interface{}) {
_handler(nil, debug, msg, keyValues...)
}
func I(msg string, keyValues ...interface{}) {
_handler(nil, info, msg, keyValues...)
}
func W(msg string, keyValues ...interface{}) {
_handler(nil, warn, msg, keyValues...)
}
func E(msg string, keyValues ...interface{}) {
_handler(nil, err, msg, keyValues...)
}
func P(msg string, keyValues ...interface{}) {
_handler(nil, panic, msg, keyValues...)
}
func F(msg string, keyValues ...interface{}) {
_handler(nil, fatal, msg, keyValues...)
}
func Log(keyValues ...interface{}) {
_handler(nil, dev, arrow, keyValues...)
}
func (c *contextLogger) D(msg string, keyValues ...interface{}) {
_handler(c, debug, msg, keyValues...)
}
func (c *contextLogger) I(msg string, keyValues ...interface{}) {
_handler(c, info, msg, keyValues...)
}
func (c *contextLogger) W(msg string, keyValues ...interface{}) {
_handler(c, warn, msg, keyValues...)
}
func (c *contextLogger) E(msg string, keyValues ...interface{}) {
_handler(c, err, msg, keyValues...)
}
func (c *contextLogger) P(msg string, keyValues ...interface{}) {
_handler(c, panic, msg, keyValues...)
}
func (c *contextLogger) F(msg string, keyValues ...interface{}) {
_handler(c, fatal, msg, keyValues...)
}
func (c *contextLogger) Log(keyValues ...interface{}) {
_handler(c, dev, arrow, keyValues...)
}