kongfig
kongfig copied to clipboard
Would be nice to be able to change the logging format
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

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 :

instead of

That's about it, nothing too hard ;) What do you think ?
Good idea, I don't think it would be hard to do.