This topic applies to WebSphere Application Server Liberty V8.5.5.9 and earlier. For the latest Liberty topics, see the WebSphere Application Server Liberty documentation.
Logging (logging)
Controls the capture and output of log and trace messages.
Attribute name | Data type | Default value | Description |
---|---|---|---|
consoleLogLevel |
|
AUDIT | The logging level used to filter messages written to system streams. The default value is audit.
|
copySystemStreams | boolean | true | If 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. |
hideMessage | string | The 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. | |
logDirectory | Path to a directory | ${server.output.dir}/logs | Location of the directory for log files. The default value is ${server.output.dir}/logs. |
maxFileSize | int
Minimum: 0 |
20 | Maximum size of a log file, in megabytes, before being rolled over; a value of 0 means no limit. |
maxFiles | int
Minimum: 0 |
2 | Maximum number of log files that will be kept, before the oldest file is removed; a value of 0 means no limit. |
messageFileName | string | messages.log | Name of the file to which message output will be written relative to the configured log directory. The default value is messages.log. |
suppressSensitiveTrace | boolean | false | The 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. |
traceFileName | string | trace.log | Name of the file to which trace output will be written relative to the configured log directory. The default value is trace.log. |
traceFormat |
|
ENHANCED | This format is used for the trace log.
|
traceSpecification | string | *=info | A 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. |