onLog property
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;
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}');
};
static NyLogCallback? onLog;