You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2018/09/28 16:49:00 UTC

[jira] [Resolved] (LOG4J2-2454) LogEvent attach a map attribute

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

Ralph Goers resolved LOG4J2-2454.
---------------------------------
    Resolution: Won't Fix

Resolving as won't fix since there is nothing to be fixed.

> LogEvent attach a map attribute
> -------------------------------
>
>                 Key: LOG4J2-2454
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2454
>             Project: Log4j 2
>          Issue Type: Improvement
>            Reporter: Lipeng
>            Priority: Minor
>
> We standardize the alarm base on log4j2, there are trigger rules and alarm handle team on the filter, these information will log to file, then our log analysis module will send mail to the team with the filter configuration. but this information can not be passed to the layout module, so I want to add an attribute to pass information between log4j2 components.  
> example
> <AlarmAppender name="alarm">
>     <Filters>
>         <Alarm>
>             <resolver>team1@xxx.com</resolver>
>             <subject>title1</subject>
>             <priority>1</priority>
>             <expression>^hello.*</expression>
>       </Alarm>
>        <Alarm>
>            <resolver>team2@xxx.com</resolver>
>            <subject>title2</subject>
>            <priority>1</priority>
>            <logLevel>error</logLevel>
>        </Alarm>
>     </Filters>
>  </AlarmAppender>



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