Log5j and The State of Log4j Version 2
I just took log5j for a spin. For those who does not know, log5j is a Java5 enhancement of the log4j api. It provides two new features on top of log4j, where one is made possible by Java5: Feature 1: Obtain a logger without giving the logger name (which is bad, I think) Feature 2: [...]
March 9, 2008
·
polesen ·
2 Comments
Tags: Java, log4j, log5j · Posted in: Programming
Making CXF Log RuntimeExceptions From Server Implementations
Here is a bit more on CXF logging. If you are using CXF to host web-service implementations (as opposed to using CXF as a client to consume web services with), you might wanna know about any un-caught RuntimeExceptions, your server-side implementation is throwing. CXF already catches and logs this for you, before sending them back [...]
February 28, 2008
·
polesen ·
No Comments
Tags: cxf, Java, log4j · Posted in: Programming
Configuring CXF Logging To Go Through Log4J
Apparently, CXF has chosen the JSE logging API as their API against logging. But you can make CXF log through Log4J quite easily. In the org.apache.cxf.common.logging package of the CXF apidocs, I found the Log4JLogger class, which is a specialization of the JSE logging api java.util.logging.Logger class, delegating logging to a Log4J implementation. Configuring Log4J [...]
January 30, 2008
·
polesen ·
34 Comments
Tags: cxf, Java, log4j, logging · Posted in: Programming
Log4J Configuration Not Loading Properly With maven-surefire-plugin
Today, I had a strange problem with maven, the maven surefire plugin and log4j.xml configuration not really getting into the action. No matter what I did, I could not get log4j logging statements lower than WARN level to show on stdout. But only when the tests ran from maven surefire! If I executed them directly [...]
January 24, 2008
·
polesen ·
No Comments
Tags: Java, log4j, maven · Posted in: Tools
