talker_dio_logger 4.0.0-dev.1 copy "talker_dio_logger: ^4.0.0-dev.1" to clipboard
talker_dio_logger: ^4.0.0-dev.1 copied to clipboard

Lightweight and customizable dio http client logger on talker base

talker_dio_logger #

Lightweight and customizable dio http client logger on talker base.
Talker - Advanced exception handling and logging for dart/flutter applications 🚀

GitHub codecov Pub License: MIT
talker talker_flutter talker_logger

Preview #

This is how the logs of your http requests will look in the console

Getting started #

Follow these steps to use this package

Add dependency #

dependencies:
  talker_dio_logger: ^4.0.0-dev.1

Usage #

Just add TalkerDioLogger to your dio instance and it will work

final dio = Dio();
dio.interceptors.add(
    TalkerDioLogger(
        settings: const TalkerDioLoggerSettings(
          printRequestHeaders: true,
          printResponseHeaders: true,
          printResponseMessage: true,
        ),
    ),
);

Using with Talker #

You can add your talker instance for TalkerDioLogger if your app already uses Talker.

In this case, all logs and errors will fall into your unified tracking system

final talker = Talker();
final dio = Dio();
dio.interceptors.add(
    TalkerDioLogger(
        talker: talker,
        settings: const TalkerDioLoggerSettings(
          printRequestHeaders: true,
          printResponseHeaders: true,
        ),
    ),
);

Additional information #

The project is under development and ready for your pull-requests and issues 👍
Thank you for support ❤️

104
likes
0
pub points
98%
popularity

Publisher

verified publisherfrezycode.com

Lightweight and customizable dio http client logger on talker base

Repository (GitHub)
View/report issues

Topics

#network #http #dio #logging

License

unknown (license)

Dependencies

dio, talker

More

Packages that depend on talker_dio_logger