Skip to content

Commit 1863cb8

Browse files
committed
Fixing logger too many arguments
1 parent 1cd1251 commit 1863cb8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

logger.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
package goesl
88

99
import (
10-
"github.com/op/go-logging"
1110
"os"
11+
12+
"github.com/op/go-logging"
1213
)
1314

1415
var (
15-
log = logging.MustGetLogger("goes")
16+
log = logging.MustGetLogger("goesl")
1617

1718
// Example format string. Everything except the message has a custom color
1819
// which is dependent on the log level. Many fields have a custom output
@@ -23,23 +24,23 @@ var (
2324
)
2425

2526
func Debug(message string, args ...interface{}) {
26-
log.Debug(message, args...)
27+
log.Debugf(message, args...)
2728
}
2829

2930
func Error(message string, args ...interface{}) {
30-
log.Error(message, args...)
31+
log.Errorf(message, args...)
3132
}
3233

3334
func Notice(message string, args ...interface{}) {
34-
log.Notice(message, args...)
35+
log.Noticef(message, args...)
3536
}
3637

3738
func Info(message string, args ...interface{}) {
38-
log.Info(message, args...)
39+
log.Infof(message, args...)
3940
}
4041

4142
func Warning(message string, args ...interface{}) {
42-
log.Warning(message, args...)
43+
log.Warningf(message, args...)
4344
}
4445

4546
func init() {

0 commit comments

Comments
 (0)