elastic / elastic/ecs-logging-java

Output message as json

Aperta
#244 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
agent-java community triage
Lingua principale
Java
Stelle
148
Fork
82
Merge medio
2g 17h
PR unite (30g)
3

Descrizione

Hi, I started to use this package in conjuction with `logback-logstash-encoder` for message layout.
Then I noticed that message is output being quoted as string even if it is actually json.

I suppose this is because `EcsJsonSerializer.serializeFormattedMessage` is always used for any message layout in `EcsEncorder`.
https://github.com/elastic/ecs-logging-java/blob/main/logback-ecs-encoder/src/main/java/co/elastic/logging/logback/EcsEncoder.java#L149

Currently is there any way to output message in json or do you have any plan to support such feature?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.