Quarkus Logging JSON
Quarkus logging extension outputting the logging in JSON.
Installation
If you want to use this extension, you need to add the quarkus-logging-json
extension first.
In your pom.xml
file, add:
<dependency>
<groupId>io.quarkiverse.loggingjson</groupId>
<artifactId>quarkus-logging-json</artifactId>
<version>3.1.0</version>
</dependency>
Extension Configuration Reference
Configuration property fixed at build time - All other configuration properties are overridable at runtime
Type |
Default |
|
---|---|---|
Determine whether to enable the JSON console formatting extension, which disables "normal" console formatting. Environment variable: |
boolean |
|
Determine whether to enable the JSON file formatting extension, which disables "normal" file formatting. Environment variable: |
boolean |
|
Used to wrap arguments in an json object, with this fieldName on root json. Environment variable: |
string |
|
Enable output of structured logging arguments Environment variable: |
boolean |
|
Enable output of non structured logging arguments, default is false. Environment variable: |
boolean |
|
What prefix to use, when outputting non structured arguments. Default is Environment variable: |
string |
|
Used to change the json key for the field. Environment variable: |
string |
|
The date format to use. The special string "default" indicates that the default format should be used. Environment variable: |
string |
|
The zone to use when formatting the timestamp. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Will write the values at the top level of the JSON log object. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Used to change the json key for the field. Environment variable: |
string |
|
Enable or disable the field. Environment variable: |
boolean |
|
Enable "pretty printing" of the JSON record. Note that some JSON parsers will fail to read pretty printed output. Environment variable: |
boolean |
|
The special end-of-record delimiter to be used. By default, newline delimiter is used. Environment variable: |
string |
` ` |
Support changing logging format. Environment variable: |
|
|
For adding fields to the json output directly from the config |
Type |
Default |
Additional field value. Environment variable: |
string |
required |
Type of the field, default is STRING. Supported types: STRING, INT, LONG, FLOAT, DOUBLE. Environment variable: |
|
|