Skip to content

Commit 2b2aae7

Browse files
committed
added caller info to log.Info
1 parent d269504 commit 2b2aae7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/log/logging.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ package log
1717

1818
import (
1919
"fmt"
20-
"github.com/kataras/golog"
21-
"github.com/kataras/pio"
2220
"io"
2321
"runtime"
22+
23+
"github.com/kataras/golog"
24+
"github.com/kataras/pio"
2425
)
2526

2627
//
@@ -182,12 +183,12 @@ func Warnf(format string, args ...interface{}) {
182183

183184
// Info will print when logger's Level is info or debug.
184185
func Info(v ...interface{}) {
185-
golog.Info(v...)
186+
withCaller(golog.Info, v...)
186187
}
187188

188189
// Infof will print when logger's Level is info or debug.
189190
func Infof(format string, args ...interface{}) {
190-
golog.Infof(format, args...)
191+
withCallerf(golog.Infof, format, args...)
191192
}
192193

193194
// Debug will print when logger's Level is debug.
@@ -197,7 +198,6 @@ func Debug(v ...interface{}) {
197198

198199
// Debugf will print when logger's Level is debug.
199200
func Debugf(format string, args ...interface{}) {
200-
201201
withCallerf(golog.Debugf, format, args...)
202202
}
203203

0 commit comments

Comments
 (0)