Skip to content

Commit

Permalink
Merge pull request #6947 from OpenLiberty/6914-loglevel
Browse files Browse the repository at this point in the history
Update log-trace-configuration.adoc
  • Loading branch information
dmuelle authored Oct 4, 2023
2 parents 876f2a5 + 6629e9e commit 5310886
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions modules/ROOT/pages/log-trace-configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)::
Expand All @@ -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.
Expand Down

0 comments on commit 5310886

Please sign in to comment.