All the three log formatters
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
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.
To configure the excluded fields in the log entries, select them on the Logger settings screen.
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.
The following table contains the description of the fields that can be excluded.
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.