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.
levelis the severity level of the log.messageis the log message.timestampis the timestamp of the log entry.scopeis the scope of the log.throwableis the associated error or exception, if any.stackTraceis 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