-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
option for JSON logging maybe? #294
Comments
Yep, agreed. Better logging is something I've had in mind. Feel free to make a PR if you'd like. |
well, I'm almost done with it here, but stuck on raftLogger's Write function: []byte to str conversion with JSON logger results here into lots of excessive escaped double quotes and newlines:
And atm idk an elegant solution to this. probably we should parse it to json fields with an additional function i.e:
should become:
what do you think? |
Perhaps instead of overriding the |
It seems easy to implement and it also would be handy and useful for many people who use elasticsearch/loki etc
smth like this
and just an additional field in Config struct
The text was updated successfully, but these errors were encountered: