ISpectifyDioLoggerSettings class
ISpectifyDioLogger settings and customization
Constructors
- ISpectifyDioLoggerSettings({bool enabled = true, bool printResponseData = true, bool printResponseHeaders = false, bool printResponseMessage = true, bool printErrorData = true, bool printErrorHeaders = true, bool printErrorMessage = true, bool printRequestData = true, bool printRequestHeaders = false, AnsiPen? requestPen, AnsiPen? responsePen, AnsiPen? errorPen, 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 - errorPen → AnsiPen?
-
Field to set custom http error console logs color
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- printErrorData → bool
-
Print
error.response.dataif truefinal - printErrorHeaders → bool
-
Print
error.response.headersif truefinal - printErrorMessage → bool
-
Print
error.messageif truefinal - printRequestData → bool
-
Print
request.dataif truefinal - printRequestHeaders → bool
-
Print
request.headersif truefinal - printResponseData → bool
-
Print
response.dataif truefinal - printResponseHeaders → bool
-
Print
response.headersif truefinal - printResponseMessage → bool
-
Print
response.statusMessageif truefinal - requestFilter → bool Function(RequestOptions requestOptions)?
-
For request filtering.
You can add your custom logic to log only specific HTTP requests
RequestOptions.final - requestPen → AnsiPen?
-
Field to set custom http request console logs color
final
- responseFilter → bool Function(Response response)?
-
For response filtering.
You can add your custom logic to log only specific HTTP responses
Response.final - responsePen → AnsiPen?
-
Field to set custom http response console logs color
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? printResponseData, bool? printResponseHeaders, bool? printResponseMessage, bool? printErrorData, bool? printErrorHeaders, bool? printErrorMessage, bool? printRequestData, bool? printRequestHeaders, AnsiPen? requestPen, AnsiPen? responsePen, AnsiPen? errorPen, bool requestFilter(RequestOptions requestOptions)?, bool responseFilter(Response response)?, bool errorFilter(DioException response)?}) → ISpectifyDioLoggerSettings -
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