error method
void
error(})
override
Log an error message.
Implementation
@override
void error(
String message, {
String? tag,
Map<String, dynamic>? extra,
Object? error,
StackTrace? stackTrace,
}) {
_printLog('ERROR', VanturaLogLevel.error, _red, message, tag, extra);
if (options.logLevel != VanturaLogLevel.none &&
VanturaLogLevel.error.index >= options.logLevel.index) {
if (error != null) _print('$_red[ERROR] $error$_reset');
if (stackTrace != null) _print('$_red[STACK TRACE] $stackTrace$_reset');
}
}