ApiLogger class

Formatted logger for EasyApiKit operations with privacy protection.

Constructors

ApiLogger({required bool enabled, required ApiLogLevel logLevel, required List<String> sensitiveHeaders, required List<String> sensitiveBodyKeys})

Properties

enabled → bool
final
hashCode → int
The hash code for this object.
no setterinherited
logLevel → ApiLogLevel
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sensitiveBodyKeys → List<String>
final
sensitiveHeaders → List<String>
final

Methods

logError(ApiError error) → void
Logs an API or network error.
logRequest(ApiRequest request) → void
Logs an outgoing HTTP request.
logResponse(ApiResponse response) → void
Logs an incoming HTTP response.
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