Hello, Yesterday I've paged by a colleague for a really strange logging behaviour on production. The logging stops working after 15m-2h. Diving into Tomcat catalina logs pointed out that there is a particular exception whose Throwable#printStackTrace(PrintWriter) method is throwing an exception -- causing the death of the appender thread, which is another issue actually. That is, trying to dump an exception is causing an exception. This got me thinking about the question in the subject: How shall a Layout handle stack trace serialization failures? Dump the 2nd exception instead? Any ideas?
Kind regards.
