apache > ws.apache
WSRF
 

Logging

Introduction

Apache WSRF uses the Apache Commons Logging Framework with Log4j as the underlying logging system. You can configure Log4j using the log4j.properties file. This includes changing log levels or where the output is emitted (e.g. stdout, log file, etc...). The properties file is located in the Apache WSRF Web application in the WEB-INF/classes directory.

Changing Log Levels

Log4j uses the following log levels: DEBUG, INFO, WARN, ERROR, and FATAL. By default, Apache WSRF is configured at the INFO level, which means messages logged at INFO or higher level (i.e. INFO, WARN, ERROR, and FATAL) are included in the output. To see more detailed log messages, you must change the log level. The following example assumes Tomcat.

To change the logging level:

  1. Using a text editor, open the log4j.properties file located in the WEB-INF/classes directory of the deployed Apache WSRF Web application.
  2. Change the log level associated with all classes below the log4j.category.org.apache.ws package. For example:
    log4j.category.org.apache.ws=DEBUG
  3. Save the log4j.properties file.
  4. Restart Tomcat.
    Note
    Log messages are displayed in Tomcat's standard output. If you are not using Tomcat, you may need to configure your Web container to include the output in its standard output.