log method

void log(
  1. LogLevel level,
  2. String message, [
  3. Object? error,
  4. StackTrace? stackTrace,
])

Logs a message at the given level.

Implementation

void log(
  LogLevel level,
  String message, [
  Object? error,
  StackTrace? stackTrace,
]) {
  _logger.log(level.level, message, error, stackTrace);
}