Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update log-trace-configuration.adoc #6947

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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