Skip to content

Commit af66807

Browse files
committed
fix log depath
1 parent eea3191 commit af66807

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ func init() {
6767
// or
6868
// make a new package default log
6969
//lg = logger.NewDefaultLogger(loggerName, adapter...)
70+
71+
// or
72+
// copy the log.go file in local and fix it
7073
}
7174
7275
func main() {

log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func newWithCaller(loggerName string, callerDepth int) proto.Logger {
3131
}
3232

3333
func New(loggerName string) proto.Logger {
34-
return newWithCaller(loggerName, 0)
34+
return newWithCaller(loggerName, 3)
3535
}
3636

3737
// Debug level, for developer println the debug message.

0 commit comments

Comments
 (0)