You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Jones, Nathan" <Na...@airnz.co.nz> on 2013/06/10 07:55:00 UTC

JUL logging from generated web service client

Hi,

I have specified org.apache.cxf.common.logging.Slf4jLogger in META-INF/cxf/org.apache.cxf.Logger and this seems to be working correctly. However, I still have this JUL logging statement appearing in my console: "INFO: Can not initialize the default wsdl from..." This statement is coming from a static initializer in a generated CXF web service client: 

        if (url == null) {
            java.util.logging.Logger.getLogger(GetCustomerDetailsServiceV2X0.class.getName())
                .log(java.util.logging.Level.INFO,
                     "Can not initialize the default wsdl from {0}", "../src/wsdl/WISE/GetCustomerDetailsServiceV2x0.wsdl");
        }

The client was generated using org.apache.cxf.tools.wsdlto.WSDLToJava from cxf-tools-wsdlto-core-2.7.4.jar.

Is this a bug? Should the logging from generated service clients not also be routed through the SLF4J logger?

 - Nathan
Good planets are hard to find - please think of the environment before you print this email.
____________________________________________________________________
CAUTION - This message may contain privileged and confidential 
information intended only for the use of the addressee named above.
If you are not the intended recipient of this message you are hereby 
notified that any use, dissemination, distribution or reproduction 
of this message is prohibited. If you have received this message in 
error please notify Air New Zealand immediately. Any views expressed 
in this message are those of the individual sender and may not 
necessarily reflect the views of Air New Zealand.
_____________________________________________________________________
For more information on the Air New Zealand Group, visit us online
at http://www.airnewzealand.com 
_____________________________________________________________________