LogEventSerializer typedef
Signature for a custom payload builder.
The returned value must be JSON-encodable (e.g. a Map<String, dynamic>
or a List). If the value implements toJson(), jsonEncode will call it
automatically.
Implementation
typedef LogEventSerializer = Object Function(LogEvent event);