7
7
package goesl
8
8
9
9
import (
10
- "github.com/op/go-logging"
11
10
"os"
11
+
12
+ "github.com/op/go-logging"
12
13
)
13
14
14
15
var (
15
- log = logging .MustGetLogger ("goes " )
16
+ log = logging .MustGetLogger ("goesl " )
16
17
17
18
// Example format string. Everything except the message has a custom color
18
19
// which is dependent on the log level. Many fields have a custom output
@@ -23,23 +24,23 @@ var (
23
24
)
24
25
25
26
func Debug (message string , args ... interface {}) {
26
- log .Debug (message , args ... )
27
+ log .Debugf (message , args ... )
27
28
}
28
29
29
30
func Error (message string , args ... interface {}) {
30
- log .Error (message , args ... )
31
+ log .Errorf (message , args ... )
31
32
}
32
33
33
34
func Notice (message string , args ... interface {}) {
34
- log .Notice (message , args ... )
35
+ log .Noticef (message , args ... )
35
36
}
36
37
37
38
func Info (message string , args ... interface {}) {
38
- log .Info (message , args ... )
39
+ log .Infof (message , args ... )
39
40
}
40
41
41
42
func Warning (message string , args ... interface {}) {
42
- log .Warning (message , args ... )
43
+ log .Warningf (message , args ... )
43
44
}
44
45
45
46
func init () {
0 commit comments