DVLogRecord class
One log line.
Constructors
-
DVLogRecord({required DVLogLevel level, required String message, DateTime? time, String? tag, Map<
String, Object?> context = const <String, Object?>{}, String? event, String? code, String? error, String? stackTrace, String? traceId, String? spanId}) -
DVLogRecord.fromJson(Map<
String, Object?> json) -
Reads a record back from toJson's shape: a line from the device's log
file, or one a client sent to its backend.
factory
Properties
- code → String?
-
A
DV-...diagnostic code, whichdartvel explaincan look up.final -
context
→ Map<
String, Object?> -
The structured part. Everything a query might filter on belongs here
rather than interpolated into message, because a value inside a
sentence can only be found by a substring search.
final
- error → String?
-
final
- event → String?
-
A machine-selectable name, for
DV.ObservabilityAndLogging.event.final - hashCode → int
-
The hash code for this object.
no setterinherited
- level → DVLogLevel
-
final
- message → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spanId → String?
-
final
- stackTrace → String?
-
final
- tag → String?
-
The category a record belongs to:
checkout,dartvel.auth,native.android. A filter in a log store, in the device's console and in an export, where a message is only searchable by its wording.final - time → DateTime
-
final
- traceId → String?
-
The trace this happened inside, when there was one.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toJsonLine(
) → String - The record as a single line.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited