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
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
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
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
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
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
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
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