On Thursday 21 October 2010 9:50:51 am Weihua JIANG wrote: > We use CXF for JAX-WS. In our project, we handled exceptions thrown by > CXF (e.g. can't connect to server). So, the exceptions are expected > and correctly handled. We also use SLF4J to perform logging for our > project. > > However, no matter the exceptions are handled or not, CXF will write > the stack trace to SLF4J log. This pollutes our log. > > My question is: is it possible to disable CXF logging or redirect CXF > logging to another log file?
It's likely not logging to SLF4J. Normally, we log directly to java.util.logging stuff. Thus, you could configure the java.util.logging to drop all log entries in the org.apache.cxf catagory. -- Daniel Kulp [email protected] http://dankulp.com/blog
