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 Damon McDougald <ro...@yahoo.com> on 2008/03/12 00:16:26 UTC
socketAppender + SimpleSocketServer
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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: socketAppender + SimpleSocketServer
Posted by Jacob Kjome <ho...@visi.com>.
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: 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