logErrorTo method

void logErrorTo({
  1. MessageLogger? messageLogger,
  2. Object? logDestiny,
})

Logs error messages of this logger to messageLogger or to logDestiny.

Implementation

void logErrorTo({MessageLogger? messageLogger, Object? logDestiny}) {
  messageLogger ??= resolveLogDestiny(logDestiny);

  _errorMessageLogger = messageLogger;
}