dartLogger function
- @Deprecated('Will be removed in v8. Enable [debug] instead')
- SentryLevel level,
- String message, {
- String? logger,
- Object? exception,
- 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,
);
}