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

Matt Sicker commented on LOG4J2-590:
------------------------------------

Alright, then perhaps it would make more sense for the HTML layout to extend 
from the pattern layout or something? Being able to use pattern layouts within 
the HTML or XML or JSON or whatever layout used might be nice (e.g., for 
specifying which fields to log or calculate).

> HTMLLayout filter stacktrace
> ----------------------------
>
>                 Key: LOG4J2-590
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-590
>             Project: Log4j 2
>          Issue Type: Wish
>            Reporter: Matej Vitásek
>
> As far as I can tell, there is no way to filter stacktrace elements in the 
> HTMLLayout - unlike with the PatternLayout. I propose to make this possible, 
> ideally re-using the property that one uses in the PatternLayout:
> {noformat}
> <properties>
>   <property 
> name="filters">org.junit,org.apache.maven,sun.reflect,java.lang.reflect</property>
> </properties>
> ...
> <PatternLayout pattern="%m%xEx{filters(${filters})}%n"/>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to