LogEvent constructor
LogEvent({})
Creates a LogEvent.
timestamp defaults to DateTime.now when omitted.
Implementation
LogEvent({
required this.level,
required this.message,
DateTime? timestamp,
this.error,
this.stackTrace,
this.context,
}) : timestamp = timestamp ?? DateTime.now();