-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the log pattern be configurable via the Infinispan CR
Closes #2162
- Loading branch information
Showing
12 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
documentation/asciidoc/topics/proc_configuring_logging_pattern.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[id='configuring-logging_{context}'] | ||
= Adjusting log pattern | ||
|
||
[role="_abstract"] | ||
To customize the log display for {brandname} log traces, update the log pattern. | ||
If no custom pattern is set, the default format is: | ||
`%d{HH:mm:ss,SSS} %-5p (%t) [%c] %m%throwable%n` | ||
|
||
.Procedure | ||
|
||
. Configure {brandname} logging with the `spec.logging.pattern` field in your `Infinispan` CR. | ||
+ | ||
[source,options="nowrap",subs=attributes+] | ||
---- | ||
include::yaml/logging_pattern.yaml[] | ||
---- | ||
+ | ||
. Apply the changes. | ||
. Retrieve logs from {brandname} pods as required. | ||
+ | ||
[source,options="nowrap",subs=attributes+] | ||
---- | ||
{oc_logs} -f $POD_NAME | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
spec: | ||
logging: | ||
pattern: %X{address} %X{user} [%d{dd/MMM/yyyy:HH:mm:ss Z}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ import ( | |
) | ||
|
||
type Spec struct { | ||
Pattern string | ||
Categories map[string]string | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters