Log custom plugin classes and read it with docker logs



I have Elasticsearch v6.5 in Docker and would like to know whether there is some specific rule I need to set to configure the log4j2.properties file in order to see logs from classes of a custom plugin I have built and installed in Dockerfile and read with docker-compose logs -f.