LogCallback typedef

LogCallback = void Function(LogSeverity severity, LogEvent event, int code, String message)

Receives a log message.

The callback runs asynchronously in the isolate and zone that registered it, after native queues the call.

See mln_log_callback in the C API reference.

Implementation

typedef LogCallback =
    void Function(
      LogSeverity severity,
      LogEvent event,
      int code,
      String message,
    );