Answer the question
In order to leave comments, you need to log in
Why are the messages displayed in a different format when running an application with and without log4j in docker?
When I start the application normally, I get messages with the INFO level in json format, when I run it in a docker container with the same INFO level, I get regular strings. What could be the problem?
Here is the logger config file:
Configuration:
Appenders:
Console:
name: Console
JsonLayout:
complete: true
compact: true
eventEol: true
target: SYSTEM_OUT
Loggers:
Root:
AppenderRef:
- ref: Console
level: INFO
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question