Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
Operating System: All
Platform: All
Description
The following config works fine:
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>(%file)</pattern>
</encoder>
</appender>
If I use property to define pattern, so it isn't work:
<property name="PATTERN" value="(%file)" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${PATTERN}</pattern>
</encoder>
</appender>
I must use "
)" instead ")", then following config work fine:
<property name="PATTERN" value="\\(%file
)" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${PATTERN}</pattern>
</encoder>
</appender>