# How to reset gateway logs without restarting?

**URL:** <https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [June 28, 2023, 2:08pm UTC](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645 "2023-06-28T14:08:06Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 29, 2023, 1:20pm UTC](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645/21 "2023-06-29T13:20:05Z")

</div>

> [@hewking32](#):
>
> highlight the main reasons

Hmm. My rants on this don't have keywords that don't also pull in a bunch of Vision-related stuff. Come to ICC this year and we can chat about it.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [June 29, 2023, 1:22pm UTC](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645/22 "2023-06-29T13:22:25Z")

</div>

> [@hewking32](#):
>
> in your opinion would sending logs to windows event logger be a good idea?

Why?? What is the issue with using the wrapper log or the gateway UI? Why force this to go somewhere else?

I mean if you’re going to force the logs somewhere just write them to a file. But really just use the tools at your disposal.

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [June 29, 2023, 1:30pm UTC](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645/23 "2023-06-29T13:30:49Z")

</div>

thanks for invite to ICC i hope to have a chat in real in future.

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [June 29, 2023, 1:42pm UTC](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645/24 "2023-06-29T13:42:41Z")

</div>

> [@lrose](#):
>
> I mean if you’re going to force the logs somewhere just write them to a file. But really just use the tools at your disposal.

idea was that if it goes to windows event log - only content i am writing is logged and event logger might have some practical functionality.  
By the way is writing to different file than wrapper possible to keep the context of the debugging in one place?

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [June 29, 2023, 3:10pm UTC](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645/25 "2023-06-29T15:10:21Z")

</div>

> [@hewking32](#):
>
> By the way is writing to different file than wrapper possible to keep the context of the debugging in one place?

Yes it is. Depending on where you’re logging from you may need to use a message handler, but it’s very possible so long as the Ignition Service user has access to a folder where it has write permissions.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 29, 2023, 3:52pm UTC](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645/26 "2023-06-29T15:52:04Z")

</div>

I can't imagine a simple logger ever preventing what I assume are stack traces to show up in the logs.  
If you can reproduce this, I'd be curious to see it in action.

---

<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:** [June 29, 2023, 4:56pm UTC](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645/27 "2023-06-29T16:56:53Z")

</div>

If you _really_ wanted to, you could customize the `logback.xml` file to write out logs (in whatever format you want, i.e. without stacktraces) into a different file automatically.

It's a silly idea, but you _could_ do it.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 29, 2023, 5:31pm UTC](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645/28 "2023-06-29T17:31:53Z")

</div>

Not exactly what I meant by _simple_ logger though.

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [June 29, 2023, 5:43pm UTC](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645/29 "2023-06-29T17:43:11Z")

</div>

thanks for input  
ps. tempted to do that silly thing just once 🙂

---

<div class="post-metadata">

**Author:** ![Tim\_Carlton](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim_carlton/32/52835_2.png) [@Tim\_Carlton](https://forum.inductiveautomation.com/u/Tim_Carlton)\
**Post date:** [June 30, 2023, 11:49am UTC](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645/30 "2023-06-30T11:49:16Z")

</div>

> [@hewking32](#):
>
> in your opinion would sending logs to windows event logger be a good idea?

If the target (host?) organization is a MS shop and has IT management systems built around the Windows Event log and the department that monitors those consolidated logs has some responsibilities for the Ignition systems then it would be a good idea. If not, then inventing such a system just for Ignition is probably not the right approach.

Also probably not the right approach is to have a bunch of isolated systems writing to proprietary or idiosyncratic formats.

A good system would end up with relevant log entries in one place with standardized levels and sources and all timestamps in UTC and... well after much research and design you are probably going to end up with something like Log4J, MongoDB, cloud storage, ...

[Previous page](https://forum.inductiveautomation.com/t/how-to-reset-gateway-logs-without-restarting/75645.md?page=1)
