I need to replace standard logback stacktrace output with org.apache.commons.lang.exception.ExceptionUtils#getStackTrace()
output. I read about converters, but I want to do the same without writing java class, just by editing logback.xml. Is there any way to do this?
Piece of my logback.xml:
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
<encoder>
<pattern>%d %-5level %logger{0} \(%thread\) %m%ex%n</pattern>
</encoder>
</appender>