mirror of
https://github.com/MedzikUser/go-utils.git
synced 2024-08-15 03:26:56 +00:00
feat(log): SetReportCaller to true
example output: INFO[0000]/home/trex/go/src/awesomeProject/main.go:11 main.main() hello world from https://stackoverflow.com/a/68301267
This commit is contained in:
parent
b6fc96d90a
commit
a557f452a7
1 changed files with 4 additions and 0 deletions
|
@ -25,3 +25,7 @@ var Log = &logrus.Logger{
|
|||
Hooks: make(logrus.LevelHooks),
|
||||
Level: logrus.InfoLevel,
|
||||
}
|
||||
|
||||
func init() {
|
||||
Log.SetReportCaller(true)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue