How to reset gateway logs without restarting?

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.

2 Likes

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.

2 Likes

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

1 Like

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?

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.

1 Like

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.

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.

1 Like

Not exactly what I meant by simple logger though.

1 Like

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

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

2 Likes