debugSync method
Synchronous debug logging (compatibility with popular logger packages)
Implementation
void debugSync(dynamic message, [dynamic error, StackTrace? stackTrace]) {
if (!_isInitialized) return;
final entry = LogEntry.fromParams(
message: message,
level: LogLevel.debug,
stackTrace: stackTrace,
);
if (_logQueue == null) {
throw NotInitializedError();
}
_logQueue!.enqueue(entry);
}