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

discontinuedreplaced by: carapacik_dio_logger

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

example/lib/main.dart

import 'dart:developer' show log;

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(
    OmegaDioLogger(
      logPrint: log,
      convertFormData: true,
      showError: true,
      showRequest: true,
      showRequestBody: true,
      showRequestHeaders: true,
      showRequestQueryParameters: true,
      showResponse: true,
      showResponseBody: true,
      showResponseHeaders: true,
      showCurl: true,
      showLog: kDebugMode,
    ),
  );
}
7
likes
0
points
55
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

License

unknown (license)

Dependencies

dio

More

Packages that depend on omega_dio_logger