logErrorTo function

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

Logs error logging messages to messageLogger.

Implementation

void logErrorTo(
    {MessageLogger? messageLogger,
    Object? logDestiny,
    LoggerHandler? loggerHandler}) {
  loggerHandler = _resolveLoggerHandler(loggerHandler);
  loggerHandler.logErrorTo(
      messageLogger: messageLogger, logDestiny: logDestiny);
}