LogContext class

Context information for a log entry.

Constructors

LogContext({required Level level, required String message, required DateTime timestamp, required String scope, dynamic throwable, StackTrace? stackTrace})
Creates a new LogContext. level is the severity level of the log. message is the log message. timestamp is the timestamp of the log entry. scope is the scope of the log. throwable is the associated error or exception, if any. stackTrace is the associated stack trace, if any.

Properties

hashCode int
The hash code for this object.
no setterinherited
level → Level
The severity level of the log.
final
message String
The log message.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope String
The scope of the log.
final
stackTrace StackTrace?
The associated stack trace, if any.
final
throwable → dynamic
The associated error or exception, if any.
final
timestamp DateTime
The timestamp of the log entry.
final

Methods

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