logError static method
Logs an error message, optional error and stackTrace if
isDebugEnabled is true.
Implementation
static void logError(
String message, [
Object? error,
StackTrace? stackTrace,
]) {
if (isDebugEnabled) {
_logger.e('[$_tag] $message', error: error, stackTrace: stackTrace);
}
}