qa_logger 0.1.1 copy "qa_logger: ^0.1.1" to clipboard
qa_logger: ^0.1.1 copied to clipboard

outdated

qa_logs is a Dart package designed to assist with monitoring and logging network calls within your application

qa_logger #

qa_logger is a Dart package that provides a simple and efficient way to monitor and log network calls in your application. It's an essential tool for debugging and quality assurance.

Features #

  • Easy integration with Dio
  • Detailed logging of network requests and responses
  • Helps in identifying network-related issues

Installation #

Add qa_logger to your pubspec.yaml file:

dependencies:
  qa_logger: ^1.0.0

Then run flutter pub get.

Usage #

Import qa_logger in your Dart file:

import 'package:qa_logger/qa_logger.dart';

Add the QAInterceptor to your Dio instance:

_dio.interceptors.add(QAInterceptor());

Now, all network requests and responses made by the Dio instance will be logged by the QAInterceptor.

Viewing Logs #

To view the logs, open localhost:3000 on your device.

If you want to view the logs on your laptop, ensure that your device and laptop are connected to the same WiFi network. Then, open the browser on your laptop and enter the IP address of the application running device (you can get ip from localhost:3000 also) followed by port 3000.

For example, if the IP address of your device is 192.168.1.5, you would enter 192.168.1.5:3000 in your browser.

This will allow you to monitor the network calls of your application in real-time.

5
likes
0
points
50
downloads

Publisher

unverified uploader

Weekly Downloads

qa_logs is a Dart package designed to assist with monitoring and logging network calls within your application

License

unknown (license)

Dependencies

dio, flutter_express, shelf, shelf_web_socket

More

Packages that depend on qa_logger