TextFormatter.withDefaults constructor

TextFormatter.withDefaults()

Creates a new TextFormatter with set format callback.

Implementation

factory TextFormatter.withDefaults() =>
    TextFormatter((name, timestamp, level, message, fields) =>
        '$name $timestamp [$level]: $message $fields'.trim());