I have tried all steps that you listed. When I write my client code to the console appender or file appender it works everytime. When I use debug, on both the client and server I am not seeing errors. When I run the SimpleSocketServer on my dev box my test.log gets the message everytime. It only breaks when I move the server piece to a remote server. The server runs java 1.4.2 and I run 1.5. I captured the packets and when I am debugging my code in eclipse, logging works when logging to a remote server. The request sends 11 packets per request. If I run my code without debugging I only see 9 packets. Not sure what is choking but it looks like the client is failing to send the logging event after the server acks the initial log4J request to the simple socket server.
----- Original Message ---- From: Jacob Kjome <[EMAIL PROTECTED]> To: Log4J Users List <[email protected]> Sent: Wednesday, March 12, 2008 10:42:11 PM Subject: Re: socketAppender + SimpleSocketServer Have you tried using -Dlog4j.debug=true? Or, if you change to using a regular appender, such as a Console appender or FileAppender, does it work then? Jake Damon McDougald wrote: > Hey guys, I can get the socketAppender and SimpleSocketServer to work while I > am debugging my code. But, when I run my Junit Test outside of debug Nothing > happens. Has anyone experienced this before? > > Here is my client file: > log4j.rootLogger=INFO,S > log4j.appender.S=org.apache.log4j.net.SocketAppender > log4j.appender.S.Port=13333 > log4j.appender.S.RemoteHost=xxxx.com > > Here is my server file: > log4j.rootLogger=DEBUG,R > > > log4j.logger.com.xxx.R07772Write=INFO,F > log4j.additivity.com.xxx.R07772Write=false > > # Rolling File Appender > log4j.appender.R=org.apache.log4j.RollingFileAppender > log4j.appender.R.File=mylog.log > log4j.appender.R.MaxFileSize=5MB > log4j.appender.R.MaxBackupIndex=5 > log4j.appender.R.layout=org.apache.log4j.PatternLayout > log4j.appender.R.layout.ConversionPattern=%d{DATE} (%x) %-5p %c{1} %m%n > > # Rolling File Appender (F) > log4j.appender.F=org.apache.log4j.RollingFileAppender > log4j.appender.F.File=test.log > log4j.appender.F.MaxFileSize=5MB > log4j.appender.F.MaxBackupIndex=3 > log4j.appender.F.layout=org.apache.log4j.PatternLayout > log4j.appender.F.layout.ConversionPattern=%m%n > > > > > > ____________________________________________________________________________________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > > --------------------------------------------------------------------- > 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] ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
