ApiLogEvent class
Structured package event delivered to ApiLogger implementations.
Constructors
-
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}) -
const
Properties
- attempt → int?
-
final
- code → String?
-
final
-
data
→ Map<
String, Object?> -
final
- duration → Duration?
-
final
- error → Object?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → ApiLogLevel
-
final
- maxAttempts → int?
-
final
- message → String
-
final
- method → String?
-
final
- operationId → String?
-
final
- options → ApiResolvedLogOptions?
-
final
- path → String?
-
final
- requestId → String?
-
final
- retryDelay → Duration?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String?
-
final
- stackTrace → StackTrace?
-
final
- statusCode → int?
-
final
- timestamp → DateTime
-
final
- type → ApiLogEventType
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited