Hello,
I just upgraded log4j in trunk to 1.2.15 from 1.2.9.
There are two advantages from doing this:
1) We now have access to log4j's TRACE log level, which is meant to be
used for stuff even more verbose than DEBUG, which I think we could
probably stand to make good use of in a few places--I know I've removed
log messages in some code that is executed often just because it was so
verbose, and needlessly so 99.999% of the time.
2) To support slf4j-log4j12, the Log4j adapter for SLF4J, which is used
by Jetty. If Jetty finds SLF4J in its classpath, it uses that for
logging instead of the StdErr logger. The recent versions of the
slf4j-log4j12 adapter require log4j 1.2.12 or newer because of the TRACE
log level.
Please let me know if this upgrade is a problem or might cause a
problem, and I'm curious what people think about #1.
That is all. :-)
- djg
On Sat, 10 May 2008 10:22:25 -0700, [EMAIL PROTECTED] said:
> Revision: 9098
> http://opennms.svn.sourceforge.net/opennms/?rev=9098&view=rev
> Author: djgregor
> Date: 2008-05-10 10:22:21 -0700 (Sat, 10 May 2008)
>
> Log Message:
> -----------
> Upgrade to log4j 1.2.15 (from 1.2.9) and add slf4j-api and slf4j-log4j12
> dependencies for opennms-jetty so that Jetty logs no longer to go stderr
>
> Modified Paths:
> --------------
> opennms/trunk/opennms-jetty/pom.xml
> opennms/trunk/pom.xml
>
> Modified: opennms/trunk/opennms-jetty/pom.xml
> ===================================================================
> --- opennms/trunk/opennms-jetty/pom.xml 2008-05-10 17:08:38 UTC (rev
> 9097)
> +++ opennms/trunk/opennms-jetty/pom.xml 2008-05-10 17:22:21 UTC (rev
> 9098)
> @@ -37,5 +37,13 @@
> <groupId>org.opennms</groupId>
> <artifactId>service-registration</artifactId>
> </dependency>
> + <dependency>
> + <groupId>org.slf4j</groupId>
> + <artifactId>slf4j-api</artifactId>
> + </dependency>
> + <dependency>
> + <groupId>org.slf4j</groupId>
> + <artifactId>slf4j-log4j12</artifactId>
> + </dependency>
> </dependencies>
> </project>
>
> Modified: opennms/trunk/pom.xml
> ===================================================================
> --- opennms/trunk/pom.xml 2008-05-10 17:08:38 UTC (rev 9097)
> +++ opennms/trunk/pom.xml 2008-05-10 17:22:21 UTC (rev 9098)
> @@ -1293,7 +1293,21 @@
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j</artifactId>
> - <version>1.2.9</version>
> + <version>1.2.15</version>
> + <exclusions>
> + <exclusion>
> + <groupId>javax.jms</groupId>
> + <artifactId>jms</artifactId>
> + </exclusion>
> + <exclusion>
> + <groupId>com.sun.jdmk</groupId>
> + <artifactId>jmxtools</artifactId>
> + </exclusion>
> + <exclusion>
> + <groupId>com.sun.jmx</groupId>
> + <artifactId>jmxri</artifactId>
> + </exclusion>
> + </exclusions>
> </dependency>
> <dependency>
> <groupId>mx4j</groupId>
> @@ -1336,6 +1350,16 @@
> <version>1.2.15</version>
> </dependency>
> <dependency>
> + <groupId>org.slf4j</groupId>
> + <artifactId>slf4j-api</artifactId>
> + <version>1.5.0</version>
> + </dependency>
> + <dependency>
> + <groupId>org.slf4j</groupId>
> + <artifactId>slf4j-log4j12</artifactId>
> + <version>1.5.0</version>
> + </dependency>
> + <dependency>
> <groupId>org.snmp4j</groupId>
> <artifactId>snmp4j</artifactId>
> <version>1.8.1</version>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-devel mailing list
To *unsubscribe* or change your subscription options, see the bottom of this
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel