log_pixie 0.0.1 copy "log_pixie: ^0.0.1" to clipboard
log_pixie: ^0.0.1 copied to clipboard

Devtool for Flutter to view logs in a beautiful way.

log_pixie #

Description #

log_pixie is a flutter devtool extension to show logs of your application during development.

Demo #

log_pixie_demo

Installation #

 flutter pub add log_pixie

Note #

Eventhough you are adding this to you app's dependency, it will only work in debug mode.

Also you might be asked to enable the devtool after adding it to your project.

Usage #

Import log_pixie into your project

import 'package:log_pixie/log_pixie.dart';

There are four available methods to log

 LogPixie.logInfo(String message, [Map<String, String>? data])
 LogPixie.logError(String error, [StackTrace? stackTrace])
 LogPixie.logWarning(String warning, [Map<String, String>? data])
 LogPixie.logNetwork(Map<String, dynamic>? data)

Also following http interceptors are available to add to your http client of choice

    PixieDioInterceptor();

If you are using http package then use HttpInterceptor from this project to create the client or you can directly use LogPixie.logNetwork(Map<String, dynamic>? data) method

Contributing #

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the log_pixie GitHub repository.

0
likes
140
pub points
0%
popularity

Publisher

unverified uploader

Devtool for Flutter to view logs in a beautiful way.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dio, flutter, http

More

Packages that depend on log_pixie