logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pricilla Yin <pricilla....@montage-dmc.com>
Subject RE:log4j.ignoreTCL
Date Fri, 27 Sep 2002 16:33:29 GMT
I am using IntelliJ as my IDE and I run my junit tests from it. It 
automatically invoke the junit runner to run my tests. I assume the tool 
reference the junit.jar I set in the classpath and it is version 3.8.1.

The unit test I had problem contained just one line to test the 
initialization of Torque which set up the log4j logging based on entries 
in a properties file as following:

log4j.rootCategory = ALL, default
log4j.appender.default = org.apache.log4j.FileAppender
log4j.appender.default.file = ${torque.applicationRoot}/logs/uptime.log
log4j.appender.default.layout = org.apache.log4j.SimpleLayout

log4j.category.org.apache.torque = ALL, org.apache.torque
log4j.appender.org.apache.torque = org.apache.log4j.FileAppender
log4j.appender.org.apache.torque.file = 
${torque.applicationRoot}/logs/torque.log
log4j.appender.org.apache.torque.layout = org.apache.log4j.PatternLayout
log4j.appender.org.apache.torque.layout.conversionPattern = %d [%t] %-5p 
%c - %m%n
log4j.appender.org.apache.torque.append = false

I don't get the exception when I run the test outside the junit 
framework ie. not extends TestCase.
However, even I set to run the Junit Runner with the parameter 
-Dlog4j.ignoreTCL=true, I still got an exception.

Pricilla


--
To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>


Mime
View raw message