[ 
https://issues.apache.org/jira/browse/LOG4J2-2195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Raman Gupta updated LOG4J2-2195:
--------------------------------
    Description: 
Defining a pattern layout that contains:

{{%xEx\{full,filters(${exceptionFilters}),separator(|)}}}

does not work – the filters are applied but the separator is not.

Only if the filters are removed does the separator apply to the layout.

Reproduction recipe, including config file and test program here: 
https://gist.github.com/rocketraman/9a92ce76ee79bf6a15ab9b3a5ec95e08

Above you can see that the exception separator was not applied -- the default 
newlines are present in the output instead.

  was:
Defining a pattern layout that contains:

{{%xEx\{full,filters(${exceptionFilters}),separator(|)}}}

does not work – the filters are applied but the separator is not.

Only if the filters are removed does the separator apply to the layout.


> Cannot define both `filters` and `separator` for PatternLayout %xEx
> -------------------------------------------------------------------
>
>                 Key: LOG4J2-2195
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2195
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Pattern Converters
>    Affects Versions: 2.10.0
>            Reporter: Raman Gupta
>            Priority: Minor
>
> Defining a pattern layout that contains:
> {{%xEx\{full,filters(${exceptionFilters}),separator(|)}}}
> does not work – the filters are applied but the separator is not.
> Only if the filters are removed does the separator apply to the layout.
> Reproduction recipe, including config file and test program here: 
> https://gist.github.com/rocketraman/9a92ce76ee79bf6a15ab9b3a5ec95e08
> Above you can see that the exception separator was not applied -- the default 
> newlines are present in the output instead.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to