logback-contrib icon indicating copy to clipboard operation
logback-contrib copied to clipboard

Default line separation to `true`

Open AndesKrrrrrrrrrrr opened this issue 1 year ago • 0 comments

When ingesting logs via DataDog the logs are malformed if appendLineSeparator is false.

appendLineSeparator = false

We get log lines of concatenated JSON objects, which aren't parsed correctly. Long lines are snipped somewhere due to log streaming. For example

{"name": "john","age":11}{"otherEvent": ["foo"]}
{"name": "jane","age":22}{"otherEvent": ["bar"]}

appendLineSeparator = true

A single JSON object per line, easy to parse, no snipping. For example:

{"name": "john","age":11}
{"otherEvent": ["foo"]}
{"name": "jane","age":22}
{"otherEvent": ["bar"]}

AndesKrrrrrrrrrrr avatar Apr 23 '24 09:04 AndesKrrrrrrrrrrr