I just want to add my 2 cents here. I know that the guidelines for [12 factor apps|https://12factor.net/] say to log to the console. As I documented at [Logging in the Cloud|http://logging.apache.org/log4j/2.x/manual/cloud.html] if you have significant logging or performance is a concern logging to the standard output stream, and especially the console, is a bad idea as the performance is much slower. I would encourage you to run this [benchmark|https://github.com/apache/logging-log4j2/blob/release-2.x/log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/OutputBenchmark.java] on your system to show how poor it is. On my system I got the following results where "console" is writing to the console, "redirect" is the standard output stream redirected to a file (which is essentially what Docker does), and lastly writing to the file directly. You can see there is a huge difference.