DVLogger class

The thing application code calls.

Constructors

DVLogger({DVLogLevel minimumLevel = DVLogLevel.info, List<DVLogSink>? sinks, Set<String>? redactedKeys})

Properties

hashCode → int
The hash code for this object.
no setterinherited
minimumLevel ↔ DVLogLevel
Records below this are dropped.
getter/setter pair
onRecord ↔ void Function(DVLogRecord record)?
Called for every record, whether or not it passes minimumLevel.
getter/setter pair
redactedKeys ↔ Set<String>
Context keys whose values never reach a sink.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sinks → List<DVLogSink>
final

Methods

debug(String message, {Map<String, Object?> context = const {}}) → void
error(String message, {Map<String, Object?> context = const <String, Object?>{}, Object? error, StackTrace? stackTrace, String? code}) → void
info(String message, {Map<String, Object?> context = const <String, Object?>{}, String? traceId, String? spanId}) → void
log(String message, {DVLogLevel level = DVLogLevel.info, Map<String, Object?> context = const <String, Object?>{}, String? event, String? code, Object? error, StackTrace? stackTrace, String? traceId, String? spanId}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
trace(String message, {Map<String, Object?> context = const {}}) → void
warn(String message, {Map<String, Object?> context = const {}}) → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultRedactedKeys → const Set<String>
redactedValue → const String
What a redacted value is replaced with. Present rather than removed, so a reader can tell the difference between a secret that was there and a field that was never set.