The normal way to segregate events would be to filter on something in the 
StucturedDataMessage - either the event type, event id or one of the attributes.

Ralph

On Aug 5, 2014, at 5:12 AM, parkirat <[email protected]> wrote:

> Hi All,
> 
> I got the issue fixed. Change the configuration of log4j2.xml as below:
> 
> Instead of name="package" gave name="EventLogger" not sure how to configure,
> if I would like to have different Appenders for different Event Logs in
> different package.
> 
> =================
> <Logger name="EventLogger" level="info" additivity="false">
>      <AppenderRef ref="Routing"/>
>    </Logger>
> =================
> 
> Also could anybody help in how to avoid the event type and event id to come
> in the logs, but only the message???
> 
> Regards,
> Parkirat Singh Bagga.
> 
> 
> 
> --
> View this message in context: 
> http://apache-logging.6191.n7.nabble.com/Separate-the-event-logs-generated-by-EventLogger-Logs-How-tp50112p50118.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


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

Reply via email to