kongfig icon indicating copy to clipboard operation
kongfig copied to clipboard

Would be nice to be able to change the logging format

Open JnMik opened this issue 8 years ago • 1 comments

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 ?

JnMik avatar Feb 17 '17 15:02 JnMik

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

CyExy avatar Feb 18 '17 18:02 CyExy