PlayxNetworkLoggerSettings class
Logger settings used to customize what should be logged by the application when performing a request.
Constructors
- PlayxNetworkLoggerSettings.new({bool enabled = kDebugMode, bool printResponseData = true, bool printResponseHeaders = false, bool printResponseMessage = true, bool printResponseRedirects = false, bool printResponseTime = false, bool printErrorData = true, bool printErrorHeaders = true, bool printErrorMessage = true, bool printRequestData = true, bool printRequestHeaders = true, bool printRequestExtra = false, bool requestFilter(RequestOptions requestOptions)?, bool responseFilter(Response response)?, bool errorFilter(DioException response)?})
-
const
Properties
- enabled → bool
-
final
- errorFilter → bool Function(DioException response)?
-
For error filtering.
You can add your custom logic to log only specific Dio error DioException.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
Header values for the specified keys in the Set will be replaced with *****.
Case insensitive
final
- printErrorData → bool
-
Print
error.response.data
if truefinal - printErrorHeaders → bool
-
Print
error.response.headers
if truefinal - printErrorMessage → bool
-
Print
error.message
if truefinal - printRequestData → bool
-
Print
request.data
if truefinal - printRequestExtra → bool
-
Print
request.extra
if truefinal - printRequestHeaders → bool
-
Print
request.headers
if truefinal - printResponseData → bool
-
Print
response.data
if truefinal - printResponseHeaders → bool
-
Print
response.headers
if truefinal - printResponseMessage → bool
-
Print
response.statusMessage
if truefinal - printResponseRedirects → bool
-
Print
response.redirects
if truefinal - printResponseTime → bool
-
Print response time if true
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- requestFilter → bool Function(RequestOptions requestOptions)?
-
For request filtering.
You can add your custom logic to log only specific HTTP requests RequestOptions.
final
- responseFilter → bool Function(Response response)?
-
For response filtering.
You can add your custom logic to log only specific HTTP responses Response.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool
-
If set to
true
, the toString method will be overridden to output this instance's props.no setter
Methods
-
buildTalkerDioLogger(
) → TalkerDioLogger -
copyWith(
{bool? enabled, bool? printResponseData, bool? printResponseHeaders, bool? printResponseMessage, bool? printResponseRedirects, bool? printResponseTime, bool? printErrorData, bool? printErrorHeaders, bool? printErrorMessage, bool? printRequestData, bool? printRequestHeaders, bool? printRequestExtra, bool requestFilter(RequestOptions requestOptions)?, bool responseFilter(Response response)?, bool errorFilter(DioException response)?, }) → PlayxNetworkLoggerSettings -
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