# Opto 22 Driver errors ignoring logger settings

**URL:** <https://forum.inductiveautomation.com/t/opto-22-driver-errors-ignoring-logger-settings/55192>\
**Category:** Ignition\
**Created:** [January 19, 2022, 10:05pm UTC](https://forum.inductiveautomation.com/t/opto-22-driver-errors-ignoring-logger-settings/55192 "2022-01-19T22:05:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshua.rowlison](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@joshua.rowlison](https://forum.inductiveautomation.com/u/joshua.rowlison)\
**Post date:** [January 19, 2022, 10:05pm UTC](https://forum.inductiveautomation.com/t/opto-22-driver-errors-ignoring-logger-settings/55192/1 "2022-01-19T22:05:57Z")

</div>

First off this is connected with my [previous ticket](https://forum.inductiveautomation.com/t/configure-wrapper-log-for-single-line-messages/46198) on Ignition logging.

I’m using the following as my appender, and it works well enough that we have it in production.

```auto
 <appender name="SysoutAppender" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
		<pattern>BasePattern %p |M: %m |S: %replace(%ex{short}){'[\r\n]+', ''}%nopex | END %n</pattern>
	
    </encoder>
  </appender>

```

Where things have gone wrong is that while most stack traces, such as those generated by scripts, are formatted and truncated correctly. The Opto 22 driver generates errors when it’s unable to connect. For some reason they do not conform to the pattern , not as listed above, nor when I provide a stackTracePattern. I’m unable to have _any_ effect on the stack traces generated by the Opto 22 drivers, and it’s inundating my log storage.

I’m hoping someone might have some idea how these stack traces are bypassing my config and how I might get format them correctly.

---

<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:** [January 19, 2022, 10:35pm UTC](https://forum.inductiveautomation.com/t/opto-22-driver-errors-ignoring-logger-settings/55192/2 "2022-01-19T22:35:47Z")

</div>

Possibly that driver is printing instead of logging? Thereby getting just the wrapper handling? Consider posting on the [Cirrus Link forum](https://forum.cirrus-link.com/).

---

<div class="post-metadata">

**Author:** ![joshua.rowlison](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@joshua.rowlison](https://forum.inductiveautomation.com/u/joshua.rowlison)\
**Post date:** [January 21, 2022, 4:39pm UTC](https://forum.inductiveautomation.com/t/opto-22-driver-errors-ignoring-logger-settings/55192/3 "2022-01-21T16:39:28Z")

</div>

That certainly seems possible, I crossposted over there for it.
