LogEntry class

Represents a log entry with complete context information.

This class encapsulates all information needed for logging, including the message, log level, timestamp, optional event, context map, and stack trace. Strategies receive this complete entry to make decisions about formatting and routing.

Constructors

LogEntry({required dynamic message, required LogLevel level, required DateTime timestamp, LogEvent? event, Map<String, dynamic>? context, StackTrace? stackTrace})
LogEntry.fromParams({required dynamic message, required LogLevel level, LogEvent? event, Map<String, dynamic>? context, StackTrace? stackTrace})
Creates a log entry from parameters
factory

Properties

context Map<String, dynamic>?
final
event LogEvent?
final
hashCode int
The hash code for this object.
no setterinherited
level LogLevel
final
mergedContext Map<String, dynamic>
Merges context from entry.context and entry.event.parameters.
no setter
message → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
final
timestamp DateTime
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts to map for serialization
toString() String
A string representation of this object.
override

Operators

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