Why does the Composite Encoder/Layout configuration not work ? #920
Replies: 1 comment 1 reply
-
The <conversionRule conversionWord="stack" converterClass="net.logstash.logback.stacktrace.ShortenedThrowableConverter" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>[%thread] - %msg%n%stack{5,1024,10,rootFirst,regex1,regex2,evaluatorName}</pattern>
</encoder>
</appender> When used within a I tried your configuration file, and all the options were configured properly, but I had to add a missing When stopping at a breakpoint as shown in your image, the options will have already been set by logback. You can inspect the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Composite Encoder/Layout According to the configuration in the documentation link, but the stack trace does not take effect.
My env info:
My logback.xml is as follows:
Local debug, class ShortenedThrowableConverter didn't get to the corresponding configuration value (for example: maxDepthPerThrowable shortenedClassNameLength and maxLength)

Beta Was this translation helpful? Give feedback.
All reactions