Chapter 17. Apache CXF Logging
17.1. Overview of Apache CXF Logging
java.util.logging. Logging is configured in a logging configuration file that is written using the standard
java.util.Propertiesformat. To run logging on an application, you can specify logging programmatically or by defining a property at the command that points to the logging configuration file when you start the application.
Default properties file
logging.propertiesfile, which is located in your InstallDir
/etcdirectory. This file configures both the output destination for the log messages and the message level that is published. The default configuration sets the loggers to print message flagged with the
WARNINGlevel to the console. You can either use the default file without changing any of the configuration settings or you can change the configuration settings to suit your specific application.
Example 17.1. Configuration for Enabling Logging
<jaxws:endpoint...> <jaxws:features> <bean class="org.apache.cxf.feature.LoggingFeature"/> </jaxws:features> </jaxws:endpoint>
Where to begin?
More information on java.util.logging
java.util.loggingutility is one of the most widely used Java logging frameworks. There is a lot of information available online that describes how to use and extend this framework. As a starting point, however, the following documents gives a good overview of