ApiLogEvent constructor
const
ApiLogEvent({
- required ApiLogLevel level,
- required ApiLogEventType type,
- required String message,
- required DateTime timestamp,
- String? method,
- String? path,
- int? statusCode,
- Duration? duration,
- String? requestId,
- String? operationId,
- int? attempt,
- int? maxAttempts,
- Duration? retryDelay,
- String? source,
- String? code,
- Map<
String, Object?> data = const <String, Object?>{}, - Object? error,
- StackTrace? stackTrace,
- 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,
});