| = Logging Trait |
| |
| // Start of autogenerated code - DO NOT EDIT! (description) |
| This trait is used to control logging options (such as color) |
| |
| |
| This trait is available in the following profiles: **Kubernetes, Knative, OpenShift**. |
| |
| // End of autogenerated code - DO NOT EDIT! (description) |
| // Start of autogenerated code - DO NOT EDIT! (configuration) |
| == Configuration |
| |
| Trait properties can be specified when running any integration with the CLI: |
| [source,console] |
| ---- |
| $ kamel run --trait logging.[key]=[value] --trait logging.[key2]=[value2] integration.groovy |
| ---- |
| The following configuration options are available: |
| |
| [cols="2m,1m,5a"] |
| |=== |
| |Property | Type | Description |
| |
| | logging.enabled |
| | bool |
| | Can be used to enable or disable a trait. All traits share this common property. |
| |
| | logging.color |
| | bool |
| | Colorize the log output |
| |
| | logging.json |
| | bool |
| | Output the log in json format |
| |
| | logging.json-pretty-print |
| | bool |
| | Enable "pretty printing" of the json log |
| |
| |=== |
| |
| // End of autogenerated code - DO NOT EDIT! (configuration) |