dartLogger function

  1. @Deprecated('Will be removed in v8. Enable [debug] instead')
void dartLogger(
  1. SentryLevel level,
  2. String message, {
  3. String? logger,
  4. Object? exception,
  5. StackTrace? stackTrace,
})

A Logger that prints out the level and message

Implementation

@Deprecated('Will be removed in v8. Enable [debug] instead')
void dartLogger(
  SentryLevel level,
  String message, {
  String? logger,
  Object? exception,
  StackTrace? stackTrace,
}) {
  log(
    '[${level.name}] $message',
    level: level.toDartLogLevel(),
    name: logger ?? 'sentry',
    time: getUtcDateTime(),
    error: exception,
    stackTrace: stackTrace,
  );
}