kataras / golog

A high-performant Logging Foundation for Go Applications. X3 faster than the rest leveled loggers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InstallStd print file location error

icoder528 opened this issue · comments

golog.InstallStd(log.New(os.Stderr, "", log.LstdFlags|log.Lshortfile))

get print location always in integration.go:79

Yes, you have to customize the output (look here: #3 (comment)) but look at the runtime.Caller(6) , change it to 7 or 8 and play with it until you make it to print the location of your source code instead of the golog's integration.