DVLogRecord constructor

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

Implementation

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