fatal method
Abstract method to log a fatal error.
error
- The error object to log as fatal.
stackTrace
- Optional. The stack trace associated with the fatal error.
event
- Optional. The specific log event associated with the fatal error.
Implementation
@override
Future<void> fatal({
dynamic error,
StackTrace? stackTrace,
LogEvent? event,
}) async {
await _logToMCP(
level: LogLevel.fatal,
message: error,
event: event,
stackTrace: stackTrace,
);
}