Spring boot application logs not able to write in to host machine from docker container

I am not able to write spring boot log4j application logs from docker container to host path.

I am trying to write in host log path /opt/logs/wildfly-01/app.log path in log4j.xml file but log4j file not writing in this path.

Thanks in advance.

Did you get Any solution ?