pretty_diox_logger 1.3.1 copy "pretty_diox_logger: ^1.3.1" to clipboard
pretty_diox_logger: ^1.3.1 copied to clipboard

discontinued

Pretty Diox logger is a Diox interceptor that logs network calls in a pretty, easy to read format.

example/main.dart

import 'package:diox/diox.dart';
import 'package:pretty_diox_logger/pretty_diox_logger.dart';

void main() async {
  final dio = Dio()
    ..interceptors.add(PrettyDioLogger(
      requestHeader: true,
      requestBody: true,
      responseBody: true,
      responseHeader: false,
      compact: false,
    ));

  try {
    await dio.get('http://www.mocky.io/v2/5d7fc75c3300000476f0b557');
  } catch (e) {
    print(e);
  }
}
1
likes
0
pub points
30%
popularity

Publisher

unverified uploader

Pretty Diox logger is a Diox interceptor that logs network calls in a pretty, easy to read format.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

diox

More

Packages that depend on pretty_diox_logger