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:
Oskar 2021-10-21 23:18:24 +02:00 committed by GitHub
parent b6fc96d90a
commit a557f452a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,3 +25,7 @@ var Log = &logrus.Logger{
Hooks: make(logrus.LevelHooks),
Level: logrus.InfoLevel,
}
func init() {
Log.SetReportCaller(true)
}