Struct slog_json::FormatBuilder [] [src]

pub struct FormatBuilder { /* fields omitted */ }

Json formatter builder

Create with Format::build.

Methods

impl FormatBuilder
[src]

Build Json format

This consumes the builder.

Set writing a newline after ever log record

Add custom values to be printed with this formatter

Add custom values to be printed with this formatter

Add default key-values: * ts - timestamp * level - record logging level name * msg - msg - formatted logging message