error method
void
error(})
Logs a message with LogLevel.error.
Implementation
void error(
String message, {
Object? error,
StackTrace? stackTrace,
Map<String, Object?>? context,
bool printStackTrace = true,
bool printError = true,
}) =>
log(
message,
level: LogLevel.error,
error: error,
stackTrace: stackTrace,
context: context,
printStackTrace: printStackTrace,
printError: printError,
);