LogEvent constructor

LogEvent({
  1. String? id,
  2. LogType type = LogType.general,
  3. required LogLevel level,
  4. required String message,
  5. required DateTime timestamp,
  6. String? stackTrace,
  7. List<Map<String, String>>? stackTraceElements,
  8. Map<String, dynamic>? metadata,
  9. DeviceMetadata? deviceMetadata,
  10. String? userId,
  11. String? userName,
  12. String? userEmail,
  13. 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();