talker_http_logger

Creator: coderz1093

Last updated:

0 purchases

talker_http_logger Image
talker_http_logger Images

Languages

Categories

Add to Cart

Description:

talker http logger

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










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_http_logger: ^0.1.0-dev.11
copied to clipboard
Usage #
Just add TalkerHttpLogger to your InterceptedClient instance and it will work
import 'package:http_interceptor/http_interceptor.dart';
import 'package:talker_http_logger/talker_http_logger.dart';

void main() async {
final client = InterceptedClient.build(interceptors: [
TalkerHttpLogger(),
]);

await client.get("https://google.com".toUri());
}
copied to clipboard
Using with Talker #
You can add your talker instance for TalkerHttpLogger if your app already uses Talker.
In this case, all logs and errors will fall into your unified tracking system
import 'package:http_interceptor/http_interceptor.dart';
import 'package:talker_http_logger/talker_http_logger.dart';

void main() async {
final talker = Talker();
final client = InterceptedClient.build(interceptors: [
TalkerHttpLogger(talker: talker),
]);

await client.get("https://google.com".toUri());
}
copied to clipboard
Additional information #
The project is under development and ready for your pull-requests and issues 👍
Thank you for support ❤️

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.