logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bradley, Todd" <todd.brad...@Polycom.com>
Subject RE: Reading from SocketHubAppender Programmatically
Date Fri, 09 Sep 2005 20:08:59 GMT
Or you can create a socket client by wrapping a Socket object in an
ObjectInputStream and reading the LoggingEvents off one by one,
operating on them in however you want.  That's what I do.


Todd. 

> -----Original Message-----
> From: Scott Deboy [mailto:sdeboy@comotivsystems.com] 
> Sent: Friday, September 09, 2005 2:16 PM
> To: Log4J Users List
> Subject: RE: Reading from SocketHubAppender Programmatically
> 
> Socket-based appenders don't use layouts - they send 
> serialized LoggingEvent objects.
> 
> 'do some processing' can be written as an appender.
> 
> You can 'exam the message' using a filter attached to the appender.
> 
> ExpressionFilter can examine the message and allow or prevent 
> the processing of the event by the appender.
> 
> Scott
> 
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Rakesh Patel
> Sent: Friday, September 09, 2005 12:49 PM
> To: log4j-user@logging.apache.org
> Subject: Reading from SocketHubAppender Programmatically
> 
> I would like to programmatically read from various SocketHubAppenders.
> Reason is, I was to exam the message and them do some 
> processing based on the message.
> 
> I like to write a program to do this, would the best way be 
> to somehow use the SocketNode or another method is better? 
> I'd like to preserve and use the layout information that was 
> passed along in the message from the SocketHubAppender. 
> Does anyone have a suggestion?
> 
> thanks
> Rakesh
> 
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 

---------------------------------------------------------------------
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