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:
java -jar ...
$ docker-compose logs name_of_container