How to view log4j logs running inside a docker container? How to view log4j logs running inside a docker container? docker docker

How to view log4j logs running inside a docker container?


Assuming that you have configured log4j to log into std out and you are running application by using commnad: java -jar ... you should be able to check logs using:

$ docker-compose logs name_of_container