Log class final
An immutable record of a single log call: sequence number, timestamp, namespace path, message, resolved data, tags, trace ids, error and stack trace.
num grows monotonically per isolate; logs filtered out by publishers still consume numbers, so gaps are normal.
Constructors
-
Log(CustomLevelLogger<
CustomLogger< levelLogger, {required String path, required List<dynamic, dynamic, Function, CustomLog> , CustomLevelLogger<dynamic, dynamic, Function, CustomLog> , Function, CustomLog>TraceId> traceIds, required String message, required Object? data, required Set<String> tags, Object? error, StackTrace? stackTrace, Zone? zone})
Properties
- data → Object?
-
final
- error → Object?
-
An optional error or exception object associated with this log event.
finalinherited
- hasData → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → int
-
The numerical severity value of this log event.
finalinherited
- levelName → String
-
The display name for the severity level (e.g., "INFO", "ERROR").
finalinherited
- message → String
-
final
- num → int
-
final
- path → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortLevelName → String
-
A shortened representation of the level's display name.
finalinherited
- stackTrace → StackTrace?
-
An optional stack trace associated with the error or log event.
finalinherited
-
final
- time → DateTime
-
final
-
traceIdGroups
→ Set<
String?> -
no setter
-
traceIds
→ List<
TraceId> -
final
- zone → Zone
-
The asynchronous Zone in which this log event was produced.
finalinherited
Methods
-
collectLoggableData(
LoggableData data) → void -
Метод должен заполнить
dataописанием исследуемого класса.override -
copyWith(
{String? message, Object? data = _unset, Set< String> ? tags, Object? error = _unset, Object? stackTrace = _unset, String? path, List<TraceId> ? traceIds}) → Log - Creates a copy of this log with the given fields replaced.
-
logClassInfo(
) → LoggableData -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited