onLog property

NyLogCallback? onLog
getter/setter pair

Optional callback that receives all log entries. Set this to listen to log updates in real-time.

Example:

NyLogger.onLog = (entry) {
  print('[${entry.type}] ${entry.message}');
};

Implementation

static NyLogCallback? onLog;