To View the Server Log

  1. In the navigation tree, select the GlassFish Server node.

    The General Information page opens.

  2. On the General Information page, click the View Log Files button.

    A Log Viewer window opens.

  3. Use the Search Criteria area to customize and filter the log viewer.
  4. If you clicked Advanced Search in the Search criteria area, perform these steps.
    1. From the Logger drop-down list, select one or more namespaces to filter by module.

      Use shift-click or control-click to choose multiple namespaces.

      Selecting a namespace at a higher level selects all the namespaces below it. For example, selecting javax.enterprise.system also selects the loggers for all the modules under that namespace: javax.enterprise.system.core, javax.enterprise.system.tools.admin, and so on.

    2. In the Custom Logger field, type the logger names, one per line, to view messages from loggers specific to a particular application.

      If the application has several modules, you can view any or all of them. For example, suppose the application has loggers with the following names:

      com.mycompany.myapp.module1
      com.mycompany.myapp.module2
      com.mycompany.myapp.module3

      To view messages from all modules in the application, type com.mycompany.myapp. To view messages from module2 only, type com.mycompany.myapp.module2.

      When you specify one or more custom loggers, messages from GlassFish Server modules appear only if you specify them explicitly in the Logger area.

    3. In the Name-Value Pairs field, type the key name and value for that thread to view output from a specific thread.

      The key name is _ThreadID. For example:

      _ThreadID=13

      Suppose that com.mycompany.myapp.module2 runs in several threads. To refine the log viewer to show only the output from a single thread, specify that module’s logger in the Custom Logger field, and then specify the thread ID in this field.

    4. From the Display drop-down list, select a value from the drop-down list to view that number of messages at a time.

      The default number of messages displayed is 40. Other choices are 100, 250, and 1000.

      To view stack traces, deselect the “Limit excessively long messages” checkbox. By default, stack traces do not appear in the viewer; to view them, click the (details) link for a message.

    5. Click Basic Search to hide the Advanced Options area.
  5. In the Search Results area, customize the display of log messages.

    The Search Results area displays the 40 most recent entries in the server log, with the settings specified on the Logging Settings and Log Levels pages.

See Also
Copyright © 2010 Oracle and/or its affiliates. All rights reserved. Legal Notices