LoggingOptions class
Options to customize logging of HTTP requests and responses.
Constructors
- LoggingOptions.new({bool logNetworkTraffic = true, bool request = true, bool requestHeader = true, bool requestBody = true, bool responseBody = true, bool responseHeader = true, bool error = true, bool compact = true, bool logStorage = true, bool logCacheStorage = true})
-
Constructor to initialize LoggingOptions with customizable settings.
const
Properties
- compact → bool
-
Print a compact JSON representation of the response.
final
- error → bool
-
Print error messages encountered during the HTTP request/response cycle.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logCacheStorage → bool
-
Print content stored in cache memory.
final
- logNetworkTraffic → bool
-
Toggle logging of network traffic to the console while debugging.
final
- logStorage → bool
-
Print content stored in local storage (e.g., shared preferences, local database).
final
- request → bool
-
Print request options including the method, URL, and other related information.
final
- requestBody → bool
-
Print the body of the request (
Options.data
).final - requestHeader → bool
-
Print the headers of the request (Options.headers).
final
- responseBody → bool
-
Print the body of the response (Response.data).
final
- responseHeader → bool
-
Print the headers of the response (Response.headers).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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