You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When SetReportCaller is true, the log has the full file path (starting at root) and then also the method name as below INFO[2018-11-19 10:15:34]/Users/anoop/goworkspace/src/go-sample-app/pack/some_doer.go:22 go-sample-app/pack.DoSomething() Doing something
Is it possible to restrict the file name to start only from the application's root directory and not print the method name? Below is an example of what I am looking for. INFO[2018-11-19 10:15:34]go-sample-app/pack/some_doer.go:22 Doing something
The text was updated successfully, but these errors were encountered:
When
SetReportCaller
istrue
, the log has the full file path (starting at root) and then also the method name as belowINFO[2018-11-19 10:15:34]/Users/anoop/goworkspace/src/go-sample-app/pack/some_doer.go:22 go-sample-app/pack.DoSomething() Doing something
Is it possible to restrict the file name to start only from the application's root directory and not print the method name? Below is an example of what I am looking for.
INFO[2018-11-19 10:15:34]go-sample-app/pack/some_doer.go:22 Doing something
The text was updated successfully, but these errors were encountered: