omega_dio_logger 1.2.1 copy "omega_dio_logger: ^1.2.1" to clipboard
omega_dio_logger: ^1.2.1 copied to clipboard

Dio interceptor that logs network calls in a pretty, easy to read format with curl command

example/lib/main.dart

// ignore_for_file: avoid_redundant_argument_values
import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart' show kDebugMode;
import 'package:omega_dio_logger/omega_dio_logger.dart';

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

  dio.interceptors.add(
    const OmegaDioLogger(
      error: true,
      request: true,
      requestHeader: true,
      requestQueryParameters: true,
      requestBody: true,
      response: true,
      responseHeader: true,
      responseBody: true,
      convertFormData: true,
      colorized: true,
      showCurl: true,
      logPrint: print,
      showLog: kDebugMode,
    ),
  );
}
7
likes
160
points
54
downloads

Publisher

verified publisheromega-r.com

Weekly Downloads

Dio interceptor that logs network calls in a pretty, easy to read format with curl command

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

carapacik_dio_logger, dio

More

Packages that depend on omega_dio_logger