Stefan Franz
Apr 19, 2023
...
Use e.g this log4j2.xml without file appender
Map it to the container with -v <Folder>/log4j2.xml:/application/config/log4j2.xml
-v <Folder>/log4j2.xml:/application/config/log4j2.xml
And set environment variable for the container -e LOGGING_CONFIG=/application/config/log4j2.xml
-e LOGGING_CONFIG=/application/config/log4j2.xml