logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: Separate the event logs generated by EventLogger Logs. How?
Date Tue, 05 Aug 2014 15:37:37 GMT
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 <parkirat@bsb.in> 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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 


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


Mime
View raw message