Report Caller missing
Closed this issue · 5 comments
sanderdekoning commented
When I configure logrus in the following manner:
logrus.SetFormatter(&logrus.JSONFormatter{})
logrus.SetReportCaller(true)
logrus.SetOutput(os.Stdout)
And add the elogrus hook:
hook, err := elogrus.NewAsyncElasticHook(client, "localhost", logrus.TraceLevel, index)
logrus.AddHook(hook)
The report caller output is shown in Stdout, however it is not present in Elasticsearch/Kibana.
How can these fields (file and func) be included?
sanderdekoning commented
See PR #29
sanderdekoning commented
And for trace level PR #28
ycg000344 commented
haha~same question.
liuzoxan commented
Hi guys,
Sorry I am late, I will merge your requests. That is helpful for everyone!