pub version pub likes dart style

CarapacikDioLogger is a dio interceptor that logs in a easy to read format with curl command and colored output

Usage

Install

Add CarapacikDioLogger to your Dio interceptors:

final dio = Dio();

dio.interceptors.add(const CarapacikDioLogger());

// or customize your interceptor
dio.interceptors.add(
  const CarapacikDioLogger(
    error: true,
    request: true,
    requestHeader: true,
    requestQueryParameters: true,
    requestBody: true,
    response: true,
    responseHeader: true,
    responseBody: true,
    convertFormData: true,
    colorized: false,
    showCurl: true,
    chunkSize: 1024,
    logPrint: print,
    showLog: kDebugMode,
  ),
);

Libraries

carapacik_dio_logger
Dio interceptor that logs in a easy to read format with curl command and colored output carapacik_dio_logger