You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In logback xml, when configuring string values with an unmatched right curly brace, the right curly brace and everything after it is dropped.
An easy way to see this behavior is to configure the PatternLayoutEncoder's pattern as follows:
<configuration>
<appendername="console"class="ch.qos.logback.core.ConsoleAppender">
<encoderclass="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%m}This will not appear in the pattern</pattern>
</encoder>
</appender>
<root>
<appender-refref="console"/>
</root>
</configuration>
In logback xml, when configuring string values with an unmatched right curly brace, the right curly brace and everything after it is dropped.
An easy way to see this behavior is to configure the
PatternLayoutEncoder
's pattern as follows:And run the following class:
The actual output will be:
The expected output is:
This is a contrived example, but I chose it because it is very clear.
The actual use case was discovered here logfellow/logstash-logback-encoder#1009
The text was updated successfully, but these errors were encountered: