LogMessage class
Represents a single log message with various details for debugging and information purposes.
Constructors
-
LogMessage({required String message, required LogLevel level, required DateTime timestamp, Object? error, StackTrace? stackTrace, Map<
String, Object?> ? context}) -
Constructs an instance of LogMessage.
const
Properties
-
context
→ Map<
String, Object?> ? -
Additional contextual information provided as a map.
final
- error → Object?
-
Any error object associated with the log message.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → LogLevel
-
The severity level of the log message.
final
- message → String
-
The main content of the log message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The stack trace associated with the log message.
final
- timestamp → DateTime
-
The date and time when the log message was created.
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