# Log custom plugin classes and read it with docker logs

**URL:** <https://discuss.elastic.co/t/log-custom-plugin-classes-and-read-it-with-docker-logs/159354>\
**Category:** Elasticsearch\
**Created:** [December 4, 2018, 12:19pm UTC](https://discuss.elastic.co/t/log-custom-plugin-classes-and-read-it-with-docker-logs/159354 "2018-12-04T12:19:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uiidoi12](https://avatars.discourse-cdn.com/v4/letter/u/73ab20/32.png) [@Uiidoi12](https://discuss.elastic.co/u/Uiidoi12)\
**Post date:** [December 4, 2018, 12:19pm UTC](https://discuss.elastic.co/t/log-custom-plugin-classes-and-read-it-with-docker-logs/159354/1 "2018-12-04T12:19:09Z")

</div>

Hi,

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`.

Thanks,  
Regards

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 1, 2019, 12:19pm UTC](https://discuss.elastic.co/t/log-custom-plugin-classes-and-read-it-with-docker-logs/159354/2 "2019-01-01T12:19:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
