sirupsen / logrus

Structured, pluggable logging for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonFormatter doesn't work correctly with field in lowercase

nacimgoura opened this issue · comments

Hello,
thank you for this work.
I encounter a bug in its use when logging for json.
When I want to log a struct and the fields start with a lower case they don't appear in the logs. But when the fields start with a capital letter they appear correctly. I share with you an example link: https://go.dev/play/p/V0FILasBXhT

Thanks you!

Hey @nacimgoura 👋

Just an user, not a maintainer of this repo.

I guess this is the default behavior of go:
On serialization private Fields are missing. This is an example for the json-package.

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.