LogEvent class
Constructors
-
LogEvent({String? id, LogType type = LogType.general, required LogLevel level, required String message, required DateTime timestamp, String? stackTrace, List<
Map< ? stackTraceElements, Map<String, String> >String, dynamic> ? metadata, DeviceMetadata? deviceMetadata, String? userId, String? userName, String? userEmail, String? sessionId}) -
LogEvent.fromJson(Map<
String, dynamic> json) -
Deserialize from JSON (for loading persisted logs)
factory
Properties
- deviceMetadata → DeviceMetadata?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- level → LogLevel
-
final
- message → String
-
final
-
metadata
→ Map<
String, dynamic> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String?
-
final
- stackTrace → String?
-
final
-
stackTraceElements
→ List<
Map< ?String, String> > -
Structured stack trace elements for better crash grouping and display.
final
- timestamp → DateTime
-
final
- type → LogType
-
final
- userEmail → String?
-
final
- userId → String?
-
final
- userName → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited