You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Jonathan Cowherd <jo...@genscape.com> on 2003/02/07 16:46:39 UTC

RE: How to test the receiving LoggingEvent

I've used SocketServer to receive messages that SocketAppender sends, then I
attach a FileAppender to it.

Check out my presentation:

	Http://www.jug-l.org/log4j.html (best viewed with IE, sorry about
that).

I've got examples for both the SocketAppender and SocketServer sides.  You
may need to hook in your own SocketNode with your application in order to
receive the messages and then extend ConsoleAppender to write to your
textbox in your GUI.

Jonathan Paul Cowherd
Linux and Java Administrator
Genscape, Inc.
Email:  jonathan.cowherd@genscape.com
Office: (502) 583-3730
Mobile: (502) 314-0444



-----Original Message-----
From: Nancy [mailto:logmail2003@softhome.net] 
Sent: Thursday, December 12, 2002 10:32 AM
To: Log4J Users List
Subject: Re: How to test the receiving LoggingEvent


Could you please give me a hint with question in the following email.

Thanks.
Nancy
----- Original Message ----- 
From: "Nancy" <lo...@softhome.net>
To: "Log4J Users List" <lo...@jakarta.apache.org>
Sent: Thursday, December 12, 2002 9:07 AM
Subject: How to test the receiving LoggingEvent


> Hi:
> 
> I use SocketHubAppender of Log4J to let loggingEvent go to remote 
> swing application through TCP/IP. How can I test that the remote 
> destination has recieved LoggingEvent when log happens.
> 
> Thank you for your help.
> 
> Nancy
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> 


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

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


Re: How to test the receiving LoggingEvent

Posted by Nancy <lo...@softhome.net>.
Jonathan:

Excellent presentation. Thank you.

Nancy
----- Original Message -----
From: "Jonathan Cowherd" <jo...@genscape.com>
To: "'Log4J Users List'" <lo...@jakarta.apache.org>
Sent: Friday, February 07, 2003 10:46 AM
Subject: RE: How to test the receiving LoggingEvent


> I've used SocketServer to receive messages that SocketAppender sends, then
I
> attach a FileAppender to it.
>
> Check out my presentation:
>
> Http://www.jug-l.org/log4j.html (best viewed with IE, sorry about
> that).
>
> I've got examples for both the SocketAppender and SocketServer sides.  You
> may need to hook in your own SocketNode with your application in order to
> receive the messages and then extend ConsoleAppender to write to your
> textbox in your GUI.
>
> Jonathan Paul Cowherd
> Linux and Java Administrator
> Genscape, Inc.
> Email:  jonathan.cowherd@genscape.com
> Office: (502) 583-3730
> Mobile: (502) 314-0444
>
>
>
> -----Original Message-----
> From: Nancy [mailto:logmail2003@softhome.net]
> Sent: Thursday, December 12, 2002 10:32 AM
> To: Log4J Users List
> Subject: Re: How to test the receiving LoggingEvent
>
>
> Could you please give me a hint with question in the following email.
>
> Thanks.
> Nancy
> ----- Original Message -----
> From: "Nancy" <lo...@softhome.net>
> To: "Log4J Users List" <lo...@jakarta.apache.org>
> Sent: Thursday, December 12, 2002 9:07 AM
> Subject: How to test the receiving LoggingEvent
>
>
> > Hi:
> >
> > I use SocketHubAppender of Log4J to let loggingEvent go to remote
> > swing application through TCP/IP. How can I test that the remote
> > destination has recieved LoggingEvent when log happens.
> >
> > Thank you for your help.
> >
> > Nancy
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>


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


Re: How to test the receiving LoggingEvent

Posted by Martin <mg...@hotmail.com>.
Nice presentation http://www.jug-l.org/Advanced%20Log4j_files/frame.htm
What are the 3 params again to kick off the server?
Thanks,
- M
----- Original Message -----
From: "Jonathan Cowherd" <jo...@genscape.com>
To: "'Log4J Users List'" <lo...@jakarta.apache.org>
Sent: Friday, February 07, 2003 11:46 AM
Subject: RE: How to test the receiving LoggingEvent


> I've used SocketServer to receive messages that SocketAppender sends, then
I
> attach a FileAppender to it.
>
> Check out my presentation:
>
> Http://www.jug-l.org/log4j.html (best viewed with IE, sorry about
> that).
>
> I've got examples for both the SocketAppender and SocketServer sides.  You
> may need to hook in your own SocketNode with your application in order to
> receive the messages and then extend ConsoleAppender to write to your
> textbox in your GUI.
>
> Jonathan Paul Cowherd
> Linux and Java Administrator
> Genscape, Inc.
> Email:  jonathan.cowherd@genscape.com
> Office: (502) 583-3730
> Mobile: (502) 314-0444
>
>
>
> -----Original Message-----
> From: Nancy [mailto:logmail2003@softhome.net]
> Sent: Thursday, December 12, 2002 10:32 AM
> To: Log4J Users List
> Subject: Re: How to test the receiving LoggingEvent
>
>
> Could you please give me a hint with question in the following email.
>
> Thanks.
> Nancy
> ----- Original Message -----
> From: "Nancy" <lo...@softhome.net>
> To: "Log4J Users List" <lo...@jakarta.apache.org>
> Sent: Thursday, December 12, 2002 9:07 AM
> Subject: How to test the receiving LoggingEvent
>
>
> > Hi:
> >
> > I use SocketHubAppender of Log4J to let loggingEvent go to remote
> > swing application through TCP/IP. How can I test that the remote
> > destination has recieved LoggingEvent when log happens.
> >
> > Thank you for your help.
> >
> > Nancy
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>

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