Oracle GlassFish Server 3.0.1 Embedded Server Guide

Changing Log Levels in Embedded GlassFish Server

To change log levels in Embedded GlassFish 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 GlassFish Server logging, see Chapter 7, Administering the Logging Service, in Oracle GlassFish Server 3.0.1 Administration Guide.

ProcedureTo Change Log Levels in Embedded GlassFish Server

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

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

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

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

    For example, add