Quarkus Logging JSON
Quarkus logging extension outputting the log messages in JSON. It supports the following formats: default, Elastic Common Schema (ECS).
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.4.0</version>
</dependency>Extension Configuration Reference
Configuration property fixed at build time - All other configuration properties are overridable at runtime
| Configuration property | 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 | 
 | 
| Determine whether to enable the JSON socket formatting extension, which disables "normal" socket formatting. Environment variable:  | boolean | 
 | 
| Used to wrap arguments in a 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 prefixes 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 | 
 | 
| 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:  | 
 | 
 | 
| Support changing logging format. Environment variable:  | 
 | 
 |