日志封装框架
Features
- 先判断环境,是不是应该打印,再执行回调,以回调的形式能避免业务转换或者获取其他变量,包括对象的toString()等方法带来的消耗
- 可配置各种数据结构的解析,不单纯是支持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.