logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-1169) PatternLayout: Possible variable substitution in equals substitution parameter
Date Mon, 26 Oct 2015 08:13:27 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14973886#comment-14973886
] 

Gary Gregory commented on LOG4J2-1169:
--------------------------------------

That sounds reasonable. Would you be willing to submit a patch with unit tests?

> PatternLayout: Possible variable substitution in equals substitution parameter
> ------------------------------------------------------------------------------
>
>                 Key: LOG4J2-1169
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1169
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Pattern Converters
>    Affects Versions: 2.4.1
>            Reporter: Gerald Kritzinger
>            Priority: Critical
>
> Let the substitution parameter of the equals function also substitute variables.
> E.g.: 
> {noformat}
> %equals{%marker}{}{%msg} 
> {noformat}
> should print the message if the marker is empty, currently "%msg" is appended.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message