fatal method
Marks an error as fatal and records it to the console.
This method treats the error as a critical failure that should be prominently flagged in the console.
error
- The critical error to log.
stackTrace
- The stack trace associated with the critical error.
event
- An optional LogEvent providing additional context for the critical error.
Implementation
@override
Future<void> fatal({
dynamic error,
StackTrace? stackTrace,
LogEvent? event,
}) async {
await _logMessage(
LogLevel.fatal,
error,
event: event,
stackTrace: stackTrace,
);
}