DVLogRecord constructor

DVLogRecord({
  1. required DVLogLevel level,
  2. required String message,
  3. DateTime? time,
  4. Map<String, Object?> context = const <String, Object?>{},
  5. String? event,
  6. String? code,
  7. String? error,
  8. String? stackTrace,
  9. String? traceId,
  10. String? spanId,
})

Implementation

DVLogRecord({
  required this.level,
  required this.message,
  DateTime? time,
  this.context = const <String, Object?>{},
  this.event,
  this.code,
  this.error,
  this.stackTrace,
  this.traceId,
  this.spanId,
}) : time = time ?? DateTime.now();