# Disable gateway error logging ignition 8.0.4

**URL:** <https://forum.inductiveautomation.com/t/disable-gateway-error-logging-ignition-8-0-4/29151>\
**Category:** Ignition\
**Created:** [October 17, 2019, 9:55am UTC](https://forum.inductiveautomation.com/t/disable-gateway-error-logging-ignition-8-0-4/29151 "2019-10-17T09:55:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorisherry](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jorisherry](https://forum.inductiveautomation.com/u/jorisherry)\
**Post date:** [October 17, 2019, 9:55am UTC](https://forum.inductiveautomation.com/t/disable-gateway-error-logging-ignition-8-0-4/29151/1 "2019-10-17T09:55:20Z")

</div>

My application is connecting with modbus devices who are often offline. This makes my gateway logs look very cluttered. I can disable logs for modbus in the logging settings. But if the gateway restarts, the logging is back enabled. Is there a way to permanently disable error logging for modbus?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 17, 2019, 3:49pm UTC](https://forum.inductiveautomation.com/t/disable-gateway-error-logging-ignition-8-0-4/29151/2 "2019-10-17T15:49:16Z")

</div>

In the `logback.xml` file in the data directory, add a line like this:  
`<logger name="<full name of logger>" level="ERROR"/>`

---

<div class="post-metadata">

**Author:** ![jorisherry](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jorisherry](https://forum.inductiveautomation.com/u/jorisherry)\
**Post date:** [October 22, 2019, 9:53am UTC](https://forum.inductiveautomation.com/t/disable-gateway-error-logging-ignition-8-0-4/29151/3 "2019-10-22T09:53:15Z")

</div>

Hello, I tried to at this line at the end:

This broke all logging. Do i need to add this line at a specific place? I also tried before the tag.

---

<div class="post-metadata">

**Author:** ![jorisherry](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jorisherry](https://forum.inductiveautomation.com/u/jorisherry)\
**Post date:** [October 30, 2019, 7:07am UTC](https://forum.inductiveautomation.com/t/disable-gateway-error-logging-ignition-8-0-4/29151/4 "2019-10-30T07:07:49Z")

</div>

It worked. The line has to be inserted right after the configuration opening tag

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 30, 2019, 3:19pm UTC](https://forum.inductiveautomation.com/t/disable-gateway-error-logging-ignition-8-0-4/29151/5 "2019-10-30T15:19:04Z")

</div>

I also completely forgot it existed, but the easier option would be to use [`system.util.setLoggingLevel`](https://docs.inductiveautomation.com/display/DOC80/system.util.setLoggingLevel) in a gateway startup script 🤦‍♂️
