ApiLogEvent constructor

const ApiLogEvent({
  1. required ApiLogLevel level,
  2. required ApiLogEventType type,
  3. required String message,
  4. required DateTime timestamp,
  5. String? method,
  6. String? path,
  7. int? statusCode,
  8. Duration? duration,
  9. String? requestId,
  10. String? operationId,
  11. int? attempt,
  12. int? maxAttempts,
  13. Duration? retryDelay,
  14. String? source,
  15. String? code,
  16. Map<String, Object?> data = const <String, Object?>{},
  17. Object? error,
  18. StackTrace? stackTrace,
  19. ApiResolvedLogOptions? options,
})

Implementation

const ApiLogEvent({
  required this.level,
  required this.type,
  required this.message,
  required this.timestamp,
  this.method,
  this.path,
  this.statusCode,
  this.duration,
  this.requestId,
  this.operationId,
  this.attempt,
  this.maxAttempts,
  this.retryDelay,
  this.source,
  this.code,
  this.data = const <String, Object?>{},
  this.error,
  this.stackTrace,
  this.options,
});