-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlog.go
55 lines (41 loc) · 1.14 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
package main
import "github.com/reconquest/hierr-go"
func fatalf(format string, values ...interface{}) {
logger.Fatalf(format, values...)
}
func errorf(format string, values ...interface{}) {
logger.Errorf(format, values...)
}
func warningf(format string, values ...interface{}) {
logger.Warningf(format, values...)
}
func infof(format string, values ...interface{}) {
logger.Infof(format, values...)
}
func debugf(format string, values ...interface{}) {
logger.Debugf(format, values...)
}
func tracef(format string, values ...interface{}) {
logger.Tracef(format, values...)
}
func debugln(value interface{}) {
logger.Debug(value)
}
func infoln(value interface{}) {
logger.Info(value)
}
func fatalln(value interface{}) {
logger.Fatal(value)
}
func errorln(value interface{}) {
logger.Error(value)
}
func fatalh(err error, format string, args ...interface{}) {
logger.Fatal(hierr.Errorf(err, format, args...))
}
func warningh(err error, format string, args ...interface{}) {
logger.Warning(hierr.Errorf(err, format, args...))
}
func errorh(err error, format string, args ...interface{}) {
logger.Error(hierr.Errorf(err, format, args...))
}