Package io.quarkus.logging.json.runtime
Class JsonConfig
- java.lang.Object
-
- io.quarkus.logging.json.runtime.JsonConfig
-
@ConfigRoot(phase=RUN_TIME, name="log.console.json") public class JsonConfig extends Object
Configuration for JSON log formatting.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StringdateFormatThe date format to use.(package private) booleanenableDetermine whether to enable the JSON console formatting extension, which disables "normal" console formatting.(package private) org.jboss.logmanager.formatters.StructuredFormatter.ExceptionOutputTypeexceptionOutputTypeThe exception output type to specify.(package private) booleanprettyPrintEnable "pretty printing" of the JSON record.(package private) booleanprintDetailsEnable printing of more details in the log.(package private) Optional<String>recordDelimiterThe special end-of-record delimiter to be used.(package private) StringzoneIdThe zone ID to use.
-
Constructor Summary
Constructors Constructor Description JsonConfig()
-
-
-
Field Detail
-
enable
@ConfigItem(name="<<parent>>", defaultValue="true") boolean enable
Determine whether to enable the JSON console formatting extension, which disables "normal" console formatting.
-
prettyPrint
@ConfigItem boolean prettyPrint
Enable "pretty printing" of the JSON record. Note that some JSON parsers will fail to read pretty printed output.
-
dateFormat
@ConfigItem(defaultValue="default") String dateFormat
The date format to use. The special string "default" indicates that the default format should be used.
-
recordDelimiter
@ConfigItem Optional<String> recordDelimiter
The special end-of-record delimiter to be used. By default, newline is used as delimiter.
-
zoneId
@ConfigItem(defaultValue="default") String zoneId
The zone ID to use. The special string "default" indicates that the default zone should be used.
-
exceptionOutputType
@ConfigItem(defaultValue="detailed") org.jboss.logmanager.formatters.StructuredFormatter.ExceptionOutputType exceptionOutputType
The exception output type to specify.
-
printDetails
@ConfigItem boolean printDetails
Enable printing of more details in the log.Printing the details can be expensive as the values are retrieved from the caller. The details include the source class name, source file name, source method name and source line number.
-
-