# Create Custom Log and Write to it from Custom Module

**URL:** <https://community.wowza.com/t/create-custom-log-and-write-to-it-from-custom-module/53937>\
**Category:** Wowza Streaming Engine\
**Tags:** wowza-streaming-server-java-api, security, java\
**Created:** [September 10, 2019, 5:37pm UTC](https://community.wowza.com/t/create-custom-log-and-write-to-it-from-custom-module/53937 "2019-09-10T17:37:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Rich\_Sokol](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Rich\_Sokol](https://community.wowza.com/u/Rich_Sokol)\
**Post date:** [September 10, 2019, 5:37pm UTC](https://community.wowza.com/t/create-custom-log-and-write-to-it-from-custom-module/53937/1 "2019-09-10T17:37:53Z")

</div>

This topic has been bounced around, but to me does not seem like its been fully answered. I want to be able to create a custom log (which I have done by modifying the log4j.properties file), and write to this log from my custom module (which I have already created) with specific programmatic values by doing a getLogger().MyLog(obj) or the equivalent? I need to be able to write to that specific log from my module. Can this be done? Is it done by adding additional JMXOptions in the /bin/startup.bat? But from there it does not appear to allow me to write to the log file, rather just collect the values that were defined in the custom class? I guess I could try to create all my variables in that class as well and log them there, seems very disconnected not being able to access the log via the custom module?

---

_[View the full topic](https://community.wowza.com/t/create-custom-log-and-write-to-it-from-custom-module/53937)._
