sohlich/elogrus

Report Caller missing

Closed this issue · 5 comments

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?

And for trace level PR #28

haha~same question.

Hi guys,
Sorry I am late, I will merge your requests. That is helpful for everyone!

Thank you!

See PR #29