LogMessageWithStackTrace class final

Message (error, exception, warning) for logging with stack trace

Inheritance

Constructors

LogMessageWithStackTrace({required Object message, required LogLevel level, required DateTime date, required StackTrace stackTrace})
Message for logging
const
LogMessageWithStackTrace.create(Object message, LogLevel level, StackTrace stackTrace)
Message for logging

Properties

date DateTime
Log date
finalinherited
hashCode int
The hash code for this object.
no setterinherited
level LogLevel
Verbose level
finalinherited
message Object
Message data
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace
Stack trace This field cannot be transferred between isolates
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Message for logging to Map<String, Object?> date is converted to int date microseconds since epoch message is converted to String message level is converted to String level prefix (e.g. e) stackTrace is converted to String stack_trace
inherited
toString() String
A string representation of this object.
inherited

Operators

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