xxf_log 0.0.10 copy "xxf_log: ^0.0.10" to clipboard
xxf_log: ^0.0.10 copied to clipboard

log tools

日志封装框架

Features #

  1. 先判断环境,是不是应该打印,再执行回调,以回调的形式能避免业务转换或者获取其他变量,包括对象的toString()等方法带来的消耗
  2. 可配置各种数据结构的解析,不单纯是支持string,支持各种数据自定义,请参考parser

Getting started #

List prerequisites and provide or point to information on how to start using the package.

Usage #

    ///回调方式更加高效,底层逻辑先判断是否打印,再执行回调
  logD(()=>"=======>_incrementCounter");

  logE("=========>count:$_counter");

跳转log日志ui

   Navigator.of(context).push(
      MaterialPageRoute(
          builder:
          (context) => LogUtils.config.logger.getLoggerWidget(),
      ),
   );

网络日志监控

Dio dio = Dio();
dio.interceptors.add(HttpLogInterceptor());

Additional information #

Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.

1
likes
120
points
331
downloads

Publisher

unverified uploader

Weekly Downloads

log tools

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, logging, talker_dio_logger, talker_flutter

More

Packages that depend on xxf_log