Skip to content
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

Would be nice to be able to change the logging format #62

Open
JnMik opened this issue Feb 17, 2017 · 1 comment
Open

Would be nice to be able to change the logging format #62

JnMik opened this issue Feb 17, 2017 · 1 comment

Comments

@JnMik
Copy link
Contributor

JnMik commented Feb 17, 2017

Hello guys

Because of JSON.parse (maybe prettyJson component too), JSON is indented in a nice way in stdout logging

https://github.com/mybuilder/kongfig/blob/master/src/core.js#L107

image

That would be nice to be able to turn this off, to have 1 liner serialized json.

The reason why I am asking that is because of systems that collects logs consider each line as a new log entry. That makes it impossible to Parse it in the dedicated system.

Example with Graylog :

image

instead of

image

That's about it, nothing too hard ;)
What do you think ?

@CyExy
Copy link
Contributor

CyExy commented Feb 18, 2017

Good idea, I don't think it would be hard to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants