Logger typedef

Logger = void Function(String message, {required LogLevel level, Map<String, dynamic>? structuredData, List<String>? tags})

A Logger is a curried function that captures the LoggingContext Use extensions for .info(), .warn(), .error(), .child() etc.

Implementation

typedef Logger =
    void Function(
      String message, {
      required LogLevel level,
      Map<String, dynamic>? structuredData,
      List<String>? tags,
    });