LogEvent constructor
LogEvent({
- String? id,
- LogType type = LogType.general,
- required LogLevel level,
- required String message,
- required DateTime timestamp,
- String? stackTrace,
- List<
Map< ? stackTraceElements,String, String> > - Map<
String, dynamic> ? metadata, - DeviceMetadata? deviceMetadata,
- String? userId,
- String? userName,
- String? userEmail,
- String? sessionId,
Implementation
LogEvent({
String? id,
this.type = LogType.general,
required this.level,
required this.message,
required this.timestamp,
this.stackTrace,
this.stackTraceElements,
this.metadata,
this.deviceMetadata,
this.userId,
this.userName,
this.userEmail,
this.sessionId,
}) : id = id ?? _generateUniqueId();