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:[EMAIL PROTECTED] > 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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > 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]