AW: log4j and console progress bars

2007-03-28 Thread Wyss Patrick
this means that if you want to have a progress bar on the console you should remove the console appender from your log4j configuration. of course this also means that *none* of your logging is shown on the console. but you could still log into a file. btw: in my personal opinion writing to syste

Chainsaw question

2007-03-28 Thread giriraj
Hi I downloaded chainsaw and started the viewer using java -classpath com.puppycrawl.tools.chainsaw.Main My log4j.properties has - log4j.appender.Chainsaw=org.apache.log4j.net.SocketAppender log4j.appender.Chainsaw.remoteHost=localhost log4j.appender.Chainsaw.port=4445 log4j.appender.Chains

RE: log4j and console progress bars

2007-03-28 Thread Desjardins, Daren
Sorry, I think my question was misunderstood. I would like to have the application do the output of the progress bar, unfortunately log4j seems to replace the standard system.out and system.err. This prevents me from being able to just output text on the same line etc. Do you have suggestions

Re: log4j and console progress bars

2007-03-28 Thread James Stauffer
log4j doesn't replace the standard System.out and System.err. Are you running in an app server? If you use ConsoleAppender then log4j will write to System.out which may interfer with your output (by putting ouput in the middle of your output). On 3/28/07, Desjardins, Daren <[EMAIL PROTECTED]> w

Re: log4j properties and unit tests

2007-03-28 Thread Jacob Kjome
Personally, I use a separate Log4j config file for build-time -vs- run-time. But if you must use the same file, you can always set the property when you run the tests. For instance, using Ant... ... ... ... Jake Quoting Argyro Kazaki <[EMAIL PROTECTED]>: > Hello, > > within log4j

Re: log4j properties and unit tests

2007-03-28 Thread James Stauffer
Set the catalina.home environment variable before running unit tests. On 3/28/07, Argyro Kazaki <[EMAIL PROTECTED]> wrote: Hello, within log4j.properties file, I have the following: log4j.logger.system =ALL, sys ... log4j.appender.sys.file=${catalina.home}/logs/foo.log When the co

Re: Conditionaly sending email with Log4j

2007-03-28 Thread James Stauffer
One option would be to have separate loggers per form and then only attach the appender to the desired logggers. Note that SMTPAppender only sends email when it encounters and error (or higher) level logger.. On 3/27/07, tyson magney <[EMAIL PROTECTED]> wrote: I have an electronic forms process

log4j properties and unit tests

2007-03-28 Thread Argyro Kazaki
Hello, within log4j.properties file, I have the following: log4j.logger.system =ALL, sys ... log4j.appender.sys.file=${catalina.home}/logs/foo.log When the container is up, it works fine. When I run unit tests though, ${catalina.home} is null and all the logging infos are gone. Is