Logging Trait
The Logging trait is used to configure Integration runtime logging options (such as color and format). The logging backend is provided by Quarkus, whose configuration is documented at https://quarkus.io/guides/logging.
This trait is available in the following profiles: Kubernetes, Knative, OpenShift.
Configuration
Trait properties can be specified when running any integration with the CLI:
$ kamel run --trait logging.[key]=[value] --trait logging.[key2]=[value2] integration.groovy
The following configuration options are available:
Property | Type | Description |
---|---|---|
|
| Can be used to enable or disable a trait. All traits share this common property. |
|
| Colorize the log output |
|
| Logs message format |
|
| Adjust the logging level (defaults to |
|
| Output the logs in JSON |
|
| Enable "pretty printing" of the JSON logs |