log abstract method

void log(
  1. String message, {
  2. required LogLevel level,
  3. Object? error,
  4. StackTrace? stackTrace,
  5. Map<String, Object?>? context,
  6. bool printStackTrace = true,
  7. bool printError = true,
})

Logs a message with the specified level.

Implementation

void log(
  String message, {
  required LogLevel level,
  Object? error,
  StackTrace? stackTrace,
  Map<String, Object?>? context,
  bool printStackTrace = true,
  bool printError = true,
});