logging - Logging (logging)

Controls the capture and output of log and trace messages.

NameTypeDefaultDescription
maxFileSizeint
Min: 0
20Maximum size of a log file, in megabytes, before being rolled over; a value of 0 means no limit.
maxFilesint
Min: 0
2Maximum number of log files that will be kept, before the oldest file is removed; a value of 0 means no limit.
logDirectoryPath to a directory${server.output.dir}/logsLocation of the directory for log files. The default value is ${server.output.dir}/logs.
messageFileNamestringmessages.logName of the file to which message output will be written relative to the configured log directory. The default value is messages.log.
traceFileNamestringtrace.logName of the file to which trace output will be written relative to the configured log directory. The default value is trace.log.
traceSpecificationstring*=infoA trace specification that conforms to the trace specification grammar and specifies the initial state for various trace components. An empty value is allowed and treated as 'disable all trace'. Any component that is not specified is initialized to a default state of *=info.
hideMessagestringThe list of messages, separated by a comma, that are configured to be hidden from the console.log and message.log files. If the messages are configured to be hidden, then they are redirected to the trace.log file.
traceFormat
  • ENHANCED
  • BASIC
  • ADVANCED
ENHANCEDThis format is used for the trace log.
ENHANCED
Use the enhanced basic trace format.
BASIC
Use the basic trace format.
ADVANCED
Use the advanced trace format.
isoDateFormatbooleanfalseIf this attribute is set to true, log entries in the messages.log, trace.log, and FFDC log files will use the ISO 8601 date and time format. The default value is false.
consoleLogLevel
  • ERROR
  • WARNING
  • AUDIT
  • OFF
  • INFO
AUDITThe logging level used to filter messages written to system streams. The default value is audit.
ERROR
Error messages will be written to the system error stream.
WARNING
Warning messages will be written to the system output stream. Error messages will be written to the system error stream.
AUDIT
Audit and warning messages will be written to the system output stream. Error messages will be written to the system error stream.
OFF
No server output will be written to system streams. Only JVM output will be written to system streams.
INFO
Info, audit, and warning messages will be written to the system output stream. Error messages will be written to the system error stream.
copySystemStreamsbooleantrueIf true, write System.out to the system output stream and System.err to the system error stream. If false, System.out and System.err will write to configured logs like messages.log or trace.log, but not to the system streams. The default value is true.
suppressSensitiveTracebooleanfalseThe server trace can expose sensitive data when tracing untyped data, such as bytes received over a network connection. If true, prevent potentially sensitive information from being exposed in log and trace files. The default value is false.