From 6629e9ec9b1ec3fd60dbfed0d21bc4f6c8d3cdeb Mon Sep 17 00:00:00 2001 From: David Mueller Date: Wed, 4 Oct 2023 10:51:43 -0400 Subject: [PATCH] Update log-trace-configuration.adoc #6914 --- .../ROOT/pages/log-trace-configuration.adoc | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/modules/ROOT/pages/log-trace-configuration.adoc b/modules/ROOT/pages/log-trace-configuration.adoc index 6e269c11ba..d162b05ba1 100644 --- a/modules/ROOT/pages/log-trace-configuration.adoc +++ b/modules/ROOT/pages/log-trace-configuration.adoc @@ -94,7 +94,9 @@ TBASIC (console, messages, and trace logs):: [18/10/21 14:47:19:718 EDT] 0000003e FeatureManage A CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 7.718 seconds. ---- -In this example, the `A` attribute that precedes the `CWWKF0011I` message ID code indicates that the message log level is `AUDIT`. For more information, see <<#log-level,Message log-level attributes>>. +In this example, the `A` attribute that precedes the `CWWKF0011I` message ID code indicates that the message log level is `AUDIT`. For more information about log-level attributes, see <<#log-level,Message log-level attributes>>. + +For more information about TBASIC, see <<#tbasic,TBASIC log format>>. ENHANCED (trace log):: @@ -118,44 +120,47 @@ ADVANCED (trace log):: ---- [#log-level] -Message log-level attributes:: +=== Message log-level attributes + +Messages that are in DEV format print the full log-level name before the message ID code. Messages that are in JSON or ENHANCED format include a `loglevel` property that identifies the message log level. -Messages that are in SIMPLE or TBASIC format include one of the following message log-level attributes directly before the message ID code. +Messages that are in SIMPLE or TBASIC format include one of the following message log-level attributes directly before the message ID code: .Log-level attributes -[%header,cols="6,9,9"] +[%header,cols="3,6,9"] |=== | Attribute|Log level|Description |`A`: -|`AUDIT` +|AUDIT |Audit messages are written to the system output stream. -|`E`: This attribute indicates the log level. -|`ERROR` +|`E`: +|ERROR |Error messages are written to the system error stream. |`I` -|`INFO` +|INFO |Info messages are written to the system output stream. |`W` -|`WARNING` +|WARNING |Warning messages are written to the system output stream. -|`O`: +|`O` |N/A |This attribute does not specify a log level but indicates that the message is written to the system output stream. -|`R`: +|`R` |N/A |This attribute does not specify a log level but indicates that the message is written to the system error stream. |=== -Messages that are in DEV format print the full log-level name before the message ID code. Messages that are in JSON or ENHANCED format include a `loglevel` property that identifies the message log level. + For more information about log levels and output streams, see the descriptions for the `consoleLogLevel` and `copySystemStreams` attributes for the config:logging[] element. +[#tbasic] === TBASIC log format The TBASIC logging format provides a consistent log format across your Open Liberty console, message, and trace log files.