Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Add option to append a line separator after each JSON log message #2

Merged
merged 1 commit into from
Feb 3, 2013
Merged

Conversation

mjakl
Copy link
Contributor

@mjakl mjakl commented Jan 27, 2013

Using the option "appendLineSeparator" the JsonLayoutBase class can be configured to yield one JSON object per line (instead of all JSON objects in a single line).

I think the logfile might be even easier to parse (for humans as well as computers) when there is one message per line.

To not break the previous behavior, the default is "false".

Cheers,
Michael

@davidkarlsen
Copy link
Contributor

This would be great - and would work a lot better OOTB with logstash: http://logstash.net/

@ghost ghost assigned trutzonline Jan 28, 2013
trutzonline pushed a commit that referenced this pull request Feb 3, 2013
Add option to append a line separator after each JSON log message
@trutzonline trutzonline merged commit d5a03dd into qos-ch:master Feb 3, 2013
@trutzonline
Copy link

@mjakl looks good to me, thank you for your contribution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants