log method

  1. @override
void log(
  1. Level level,
  2. String message,
  3. String scope,
  4. dynamic exception,
  5. StackTrace? stackTrace,
  6. LoggerFormatter formatter,
)
override

Writes a log entry. level is the severity level of the log. message is the log message. scope is the scope or context of the log. throwable is an optional error or exception associated with the log. stackTrace is an optional stack trace associated with the log. formatter is a function to format the log message.

Implementation

@override
void log(
  Level level,
  String message,
  String scope,
  dynamic exception,
  StackTrace? stackTrace,
  LoggerFormatter formatter,
) {
  for (final logger in loggers) {
    logger.log(level, message, scope, exception, stackTrace, formatter);
  }
}