LogEntry constructor

LogEntry({
  1. String? id,
  2. required DevPanelLogLevel level,
  3. required String message,
  4. DateTime? timestamp,
  5. String? tag,
  6. Map<String, dynamic>? metadata,
  7. String? stackTrace,
})

Creates a LogEntry with the specified details.

Implementation

LogEntry({
  String? id,
  required this.level,
  required this.message,
  DateTime? timestamp,
  this.tag,
  this.metadata,
  this.stackTrace,
})  : id = id ?? _generateId(),
      timestamp = timestamp ?? DateTime.now();