Exclude Fields

All the three log formatters ODLLogFormatter, UniformLogFormatter, and JSONLogFormatter support the possibility to exclude some fields from the log entries. This makes the log file more compact and removes unnecessary information in the case you do not need it or want to use it.

You can change the com.sun.enterprise.server.logging.GFFileHandler.excludeFields within the <PAYARA_HOME>/glassfish/domains/<domain-name>/config/logging.properties file or use the Admin Console or an asadmin command.

If the configuration is changed while the server is running, a log rotation happens so that a log file always contains the same set of information.

Using the Admin Console

To configure the excluded fields in the log entries, select them on the Logger settings screen.

Exclude Fields

Using an asadmin command

Use the following command to change the excluded fields:

asadmin> set-log-attributes com.sun.enterprise.server.logging.GFFileHandler.excludeFields=tid,version

Multiple fields must be separated by a , and no additional spaces should be included.

Field Description

The following table contains the description of the fields that can be excluded.

Table 1. Description for each field
Field Description


ThreadId, the thread name that generated the log entry.


The time in milliseconds since January 1st, 1970 (Unix epoch) when the log entry is generated. The human-readable version of the timestamp at the beginning of the log entry is always in the output.


The numeric value corresponding to the severity level of the message. The severity level name is always present in the log entry. SEVERE = 1000, INFO = 800, FINE = 500, etc…​


The Payara Version number as configured within the branding configuration file.