logErrorMessage method

void logErrorMessage(
  1. Level level,
  2. String message
)

Implementation

void logErrorMessage(logging.Level level, String message) {
  var messageLogger = _errorMessageLogger;

  if (messageLogger == null) {
    var parent = this.parent;
    messageLogger = parent?._errorMessageLogger;
    messageLogger ??= LoggerHandler.root._errorMessageLogger;
  }

  if (messageLogger != null) {
    messageLogger(level, message);
  }
}