Sun GlassFish Enterprise Server v3 Embedded Server Guide

Changing Log Levels in Embedded Enterprise Server

To change log levels in Embedded Enterprise Server, you can follow the steps in this section or you can use the Embedded Server API as shown in Example 9. For more information about Enterprise Server logging, see Chapter 7, Administering the Logging Service, in Sun GlassFish Enterprise Server v3 Administration Guide.

ProcedureTo Change Log Levels in Embedded Enterprise Server

  1. Ensure that you have write permission access to the $JAVA_HOME/jre/lib/logging.properties file.

  2. Use a text editor to edit the $JAVA_HOME/jre/lib/logging.properties file.

  3. Change the java.util.logging.ConsoleHandler.level log level to FINE or FINEST.

  4. Add Enterprise Server log levels to the end of the file and adjust them as necessary.

    For example, add javax.enterprise.system.tools.deployment.level=FINE.