robert burrell donkin wrote:
On Sat, 2005-11-12 at 19:24 +0100, Dennis Lundberg wrote:
robert burrell donkin wrote:
On Sat, 2005-11-12 at 08:05 +1300, Simon Kitching wrote:
On Thu, 2005-11-10 at 22:40 +0000, robert burrell donkin wrote:
On Thu, 2005-11-10 at 21:04 +1300, Simon Kitching wrote:

<snip>

* Verify that TRACE support works for log4j's latest releases.
+1

volunteers?
I can help out with this.

great

Which versions are we talking about here? Here's a rundown of the ones that should be considered:

1.2.6 seems to be what is required for running JCL
1.2.9 is mentioned in build.xml
1.2.12 implements trace support and is the compilation dependency version in project.xml 1.2.13rc1 was tagged three weeks ago and contains fixes related to TRACE level 1.3.0 is only found in build.xml but it has mention of a more specific version. 1.3alpha-7 is the latest tag I found in Log4Js SVN.

If it were up to me I'd pick these:
1.2.6 make sure TRACE goes to debug
1.2.12 make sure TRACE goes to trace
1.3alpha-7 make sure TRACE goes to trace

What do you think?

that sounds about right but could do with testing the 1.2.13 release
candidate as well (just in case).

OK. I've set up a verification environment. I have built JCL 1.1-dev from SVN at revision 343981. Also I had to build log4j 1.2.13rc1 from SVN as I couldn't find a distribution for it.

The logging implementation is selected in commons-logging.properties like this
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4J12Logger
or like this
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4J13Logger

Log4j is configured via a log4j.xml file, except for 1.2.6 which only supports properties file configuration.

Here are the (disappointing) results:

1.2.6: log4j.rootCategory=TRACE
2005-11-13 23:51:59,444 FATAL org.apache.commons.logging.Verify - Logging at FATAL level. 2005-11-13 23:51:59,444 ERROR org.apache.commons.logging.Verify - Logging at ERROR level. 2005-11-13 23:51:59,444 WARN org.apache.commons.logging.Verify - Logging at WARN level. 2005-11-13 23:51:59,444 INFO org.apache.commons.logging.Verify - Logging at INFO level. 2005-11-13 23:51:59,444 DEBUG org.apache.commons.logging.Verify - Logging at DEBUG level. 2005-11-13 23:51:59,444 DEBUG org.apache.commons.logging.Verify - Logging at TRACE level.

1.2.12: <level value ="trace" />
2005-11-14 00:03:03,919 FATAL org.apache.commons.logging.Verify - Logging at FATAL level. 2005-11-14 00:03:03,939 ERROR org.apache.commons.logging.Verify - Logging at ERROR level. 2005-11-14 00:03:03,939 WARN org.apache.commons.logging.Verify - Logging at WARN level. 2005-11-14 00:03:03,939 INFO org.apache.commons.logging.Verify - Logging at INFO level. 2005-11-14 00:03:03,939 DEBUG org.apache.commons.logging.Verify - Logging at DEBUG level. 2005-11-14 00:03:03,939 DEBUG org.apache.commons.logging.Verify - Logging at TRACE level.

1.2.13rc1: <level value ="trace" />
2005-11-14 00:08:13,715 FATAL org.apache.commons.logging.Verify - Logging at FATAL level. 2005-11-14 00:08:13,715 ERROR org.apache.commons.logging.Verify - Logging at ERROR level. 2005-11-14 00:08:13,715 WARN org.apache.commons.logging.Verify - Logging at WARN level. 2005-11-14 00:08:13,715 INFO org.apache.commons.logging.Verify - Logging at INFO level. 2005-11-14 00:08:13,715 DEBUG org.apache.commons.logging.Verify - Logging at DEBUG level. 2005-11-14 00:08:13,715 DEBUG org.apache.commons.logging.Verify - Logging at TRACE level.

1.3alpha-7: <level value ="trace" />
2005-11-13 23:52:37,669 FATAL org.apache.commons.logging.Verify - Logging at FATAL level. 2005-11-13 23:52:37,669 ERROR org.apache.commons.logging.Verify - Logging at ERROR level. 2005-11-13 23:52:37,669 WARN org.apache.commons.logging.Verify - Logging at WARN level. 2005-11-13 23:52:37,669 INFO org.apache.commons.logging.Verify - Logging at INFO level. 2005-11-13 23:52:37,669 DEBUG org.apache.commons.logging.Verify - Logging at DEBUG level. 2005-11-13 23:52:37,669 TRACE org.apache.commons.logging.Verify - Logging at TRACE level.


As you can see above, trace level support is *not* working in either 1.2.12 or 1.2.13rc1. Am I doing something wrong here?

--
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to