en.help.ref-logviewer.html Maven / Gradle / Ivy
Log Viewer
Use the Log Viewer page to view the log files for selected
GlassFish Server instances and clusters and to customize the log display.
The Log Viewer page contains four areas:
Search Criteria
Advanced Search
Modify Search
Search Results
The Search Criteria area contains the following options.
- Advanced Search
Clicking this link opens an area that allows you to make additional refinements to the log viewer.
- Timestamp
The Most Recent radio button displays the most recent messages. The Specific Range radio button opens From and To fields that allow you to view messages only from a certain period of time.
For the Time value, the syntax must take the following form (SSS stands for milliseconds):
hh:mm:ss.SSS
For example:
17:10:00.000
If the From value is later than the To value, an error message appears.
- Log Level
The selected log level for filtering. By default, the display includes all messages that appear in the server log at the chosen log level and more severe levels. Select the checkbox labeled “Do not include more severe messages” to display messages at only the chosen level.
To ensure that the messages you want to view appear in the server log, first set the appropriate log levels on the Module Log Levels page. See To Configure Log Levels.
If you choose to filter log messages based on log level, only messages matching the specified filter criteria are shown. However, this filtering does not affect which messages are logged to the server log.
The Advanced Search area contains the following options.
- Logger
Logger 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.
- Custom Logger
Loggers specific to a particular application, one per line.
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.
- Display
The number of messages to view 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.
The Modify Search area lets you specify the server instance or cluster and
the name of an associated log file to view.
- Instance
The server instance or cluster for which log records will be displayed. The default is server. Other choices depend on the clusters and instances that may be defined and enabled for the domain.
- Log File
The name of the log file you want to display. The default is server.log. Other choices depend on the log settings for the selected target.
The Log Viewer Results table displays the server log messages. Use the Records
before and Records after buttons at the top of the table to choose
the range of records you want to view.
For each message, the Log Viewer Results table contains the following information.
- Record Number
The number of the message in the server log.
- Log Level
The log level of the message.
- Message
The brief text of the log message. Click the (details) link to view a formatted version of a message.
- Logger
The logger module that generated the log message.
- Timestamp
The date and time when the log message was issued.
- Name/Value Pairs
The thread name and ID of the log message.
Related Tasks
-
-
-
Related asadmin Commands
set-log-level
-
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices