logError static method
Implementation
static void logError(
String message, {
Object? error,
StackTrace? stackTrace,
}) {
_logger.err(message);
if (error != null || stackTrace != null) {
_logger.err('=====================');
if (error != null) {
_logger.err(error.toString());
}
if (stackTrace != null) {
_logger.err(stackTrace.toString());
}
}
}