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