LogEntry class

Structured log entry with metadata for better debugging and monitoring.

Constructors

LogEntry({required DateTime timestamp, required LogLevel level, required String message, String? category, Map<String, dynamic>? metadata, Object? error, StackTrace? stackTrace, String? operationId, Duration? duration})
const
LogEntry.performance({required String operation, required Duration duration, Map<String, dynamic>? metadata, String? operationId})
Creates a performance log entry for operation timing.
factory
LogEntry.sync({required LogLevel level, required String message, required String userId, String? entityId, int? itemCount, Map<String, dynamic>? metadata})
Creates a structured log entry for sync operations.
factory

Properties

category String?
final
duration Duration?
final
error Object?
final
hashCode int
The hash code for this object.
no setterinherited
level LogLevel
final
message String
final
metadata Map<String, dynamic>?
final
operationId String?
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
toString() String
A string representation of this object.
override

Operators

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