Class HelidonJsonFormatter

java.lang.Object
java.util.logging.Formatter
io.helidon.logging.jul.HelidonJsonFormatter

public class HelidonJsonFormatter extends Formatter
A Formatter that stores each log record as a single-line JSON value. It also replaces all occurrences of MDC tags like %X{value} with specific values, and supports replacement of "!thread!" with the current thread.

The configuration should be done through property "io.helidon.logging.jul.HelidonJsonFormatter.fields", that provides comma separated list of name to fields to log (references are the same as you would use in a SimpleFormatter).

The configuration falls back to property "java.util.logging.SimpleFormatter.format", and analyzes it to provide a "guessed" JSON structure.

Example (and also the default format):
"ts:%1$tQ,date:%1$tY.%1$tm.%1$td,time:%1$tH:%1$tM:%1$tS.%1$tL,level:%4$s,message:%5$s,exception:%6$s,thread:!thread!,logger:%3$s"