LogEntry constructor
LogEntry({})
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();