carapacik_dio_logger 1.0.0 copy "carapacik_dio_logger: ^1.0.0" to clipboard
carapacik_dio_logger: ^1.0.0 copied to clipboard

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

example/lib/main.dart

// ignore_for_file: avoid_redundant_argument_values
import 'package:carapacik_dio_logger/carapacik_dio_logger.dart';
import 'package:dio/dio.dart';

void main() {
  final dio = Dio();

  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,
    ),
  );
}
10
likes
160
points
67
downloads

Publisher

verified publishercarapacik.dev

Weekly Downloads

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

Repository (GitHub)
View/report issues

Topics

#dio #http #network #logging

Documentation

API reference

License

MIT (license)

Dependencies

dio

More

Packages that depend on carapacik_dio_logger