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.

Inheritance
Mixed-in types

Constructors

Log(CustomLevelLogger<CustomLogger<dynamic, dynamic, Function, CustomLog>, CustomLevelLogger<dynamic, dynamic, Function, CustomLog>, Function, CustomLog> levelLogger, {required String path, required List<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
tags Set<String>
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

Static Properties

lastNum int
getter/setter pair

Constants

noData → const LogNoData