error static method

dynamic error(
  1. String msg, [
  2. Exception? error = null
])

Implementation

static error(String msg, [Exception? error=null]) {
  if (isErrorEnabled()) {
    logger.log(LogLevel.Error, msg, error);
  }
}