You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "qiang Liu (Jira)" <ji...@apache.org> on 2022/02/10 01:21:00 UTC

[jira] [Created] (ZOOKEEPER-4465) zooinspector logback pattern config add escape for '(' and ')'

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)