You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Mate Szalay-Beko (Jira)" <ji...@apache.org> on 2022/02/15 11:34:00 UTC
[jira] [Commented] (ZOOKEEPER-4465) zooinspector logback pattern config add escape for '(' and ')'
[ https://issues.apache.org/jira/browse/ZOOKEEPER-4465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17492551#comment-17492551 ]
Mate Szalay-Beko commented on ZOOKEEPER-4465:
---------------------------------------------
[~iamgd67] thanks for the contribution!
PR merged to branches:
- master
- branch-3.8
- branch-3.8.0
> 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
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.8.0
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> 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)