qiang Liu created ZOOKEEPER-4465:
------------------------------------

             Summary: zooinspector logback pattern config add escape for '(' 
and ')'
                 Key: ZOOKEEPER-4465
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4465
             Project: ZooKeeper
          Issue Type: Bug
          Components: contrib
    Affects Versions: 3.6.2
            Reporter: qiang Liu


zooinspect logback config file logback.xml currently use a pattern of this

 
{code:java}
<pattern>%5p [%t] (%F:%L) - %m%n</pattern> {code}
which not escape the '(' and ')', cause logback to ignore parts after ')'.

 

 

according to logback documents, '(' and ')' is used for grouping, need escape 
by '\' if used as normal char

[https://logback.qos.ch/manual/layouts.html#grouping|https://logback.qos.ch/manual/layouts.html#grouping]
 

 

will create pr update it to 
{code:java}
<pattern>%5p [%t] \(%F:%L\) - %m%n</pattern> {code}
 

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to