# Logging custom module to a different file

**URL:** <https://community.wowza.com/t/logging-custom-module-to-a-different-file/43813>\
**Category:** Wowza Streaming Engine\
**Created:** [September 22, 2014, 10:31am UTC](https://community.wowza.com/t/logging-custom-module-to-a-different-file/43813 "2014-09-22T10:31:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauricio\_Antunes](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Mauricio\_Antunes](https://community.wowza.com/u/Mauricio_Antunes)\
**Post date:** [September 22, 2014, 10:31am UTC](https://community.wowza.com/t/logging-custom-module-to-a-different-file/43813/1 "2014-09-22T10:31:05Z")

</div>

Is there any way to log (getLogger) to a different file?

Wowza logs every information inside access.log. I would like to log my custom module to a different file.

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [September 22, 2014, 9:25am UTC](https://community.wowza.com/t/logging-custom-module-to-a-different-file/43813/2 "2014-09-22T09:25:32Z")

</div>

Hello there.

I believe this process is discussed and resolved in this thread here:

[Adding a custom log file and custom log fields.](http://community.wowza.com/t/-/41708)

I hope this helps you out.

Thank you, Salvadore

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [October 3, 2014, 5:52pm UTC](https://community.wowza.com/t/logging-custom-module-to-a-different-file/43813/3 "2014-10-03T17:52:13Z")

</div>

Hi,

If you’re having difficulties and require assistance with this custom logging, I recommend contacting a consultant.

We have a list of independent consultants which is available on request, please send requests to support@wowza.com

Alternatively you can post in the [Find a consultant forum](http://community.wowza.com/c/-/7).

Regards,

Jason

---

<div class="post-metadata">

**Author:** ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)\
**Post date:** [September 26, 2014, 12:26am UTC](https://community.wowza.com/t/logging-custom-module-to-a-different-file/43813/4 "2014-09-26T00:26:15Z")

</div>

Hi,

The previous thread outlined by Salvadore does show how to add custom fields and therefore your own file, if you look at the log4j.properties file outlined in the thread the custom fields can be added to any output file.

Andrew.

---

<div class="post-metadata">

**Author:** ![Mauricio\_Antunes](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Mauricio\_Antunes](https://community.wowza.com/u/Mauricio_Antunes)\
**Post date:** [September 22, 2014, 2:10pm UTC](https://community.wowza.com/t/logging-custom-module-to-a-different-file/43813/5 "2014-09-22T14:10:30Z")

</div>

Thanks salvadore.

The only problem with that thread is the lack of documentation. I felt like Wowza support was just answering the user question not worrying with others. I feel bad for the lack of Wowza supporting.

---

<div class="post-metadata">

**Author:** ![Mauricio\_Antunes](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Mauricio\_Antunes](https://community.wowza.com/u/Mauricio_Antunes)\
**Post date:** [September 26, 2014, 10:25am UTC](https://community.wowza.com/t/logging-custom-module-to-a-different-file/43813/6 "2014-09-26T10:25:17Z")

</div>

Thanks Andrew.

Will that log ONLY one line? I mean I don’t want all other INFO messages that Wowza outputs automatically.

---

<div class="post-metadata">

**Author:** ![Mauricio\_Antunes](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Mauricio\_Antunes](https://community.wowza.com/u/Mauricio_Antunes)\
**Post date:** [September 26, 2014, 1:56pm UTC](https://community.wowza.com/t/logging-custom-module-to-a-different-file/43813/7 "2014-09-26T13:56:33Z")

</div>

Just to be more clear:

My custom module gathers a lot of values like streamName, ipAddress, etc.

I have one getLogger().info(“string here”) in my whole code.

Exactly this message should be written to a specific file and ONLY this line. Not all those lines reported by Wowza server.

---

<div class="post-metadata">

**Author:** ![Mauricio\_Antunes](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Mauricio\_Antunes](https://community.wowza.com/u/Mauricio_Antunes)\
**Post date:** [October 1, 2014, 7:32pm UTC](https://community.wowza.com/t/logging-custom-module-to-a-different-file/43813/8 "2014-10-01T19:32:30Z")

</div>

Any feedback?
