Last updated:
0 purchases
flutter dmcb logger
flutter_dmcb_logger #
Flutter日志库 #
!console输出折叠
!app-log记录
!app-net记录
特性 #
IDEA使用Grep Console插件支持内容折叠。
App支持查看日志记录。
安装 #
在 pubspec.yaml 中添加
dependencies:
# 最新版本
flutter_dmcb_logger:
git: https://github.com/zenganiu/flutter_dmcb_logger.git
copied to clipboard
IDEA使用Grep Console插件配置 #
在Folding配置中添加.*Data:.*、.*ResponseBody:.*、.*Parameters:.*、.*Header:.*表达式,如图所示
!console输出折叠
使用 #
// log
DLogger.info('info123456', title: 'info');
DLogger.debug('debug654', title: 'debug');
DLogger.warn('warn963', title: 'warn');
DLogger.error('error741', title: 'error');
// 接口
DLogger.net(
api: 'http://app-gw-dev.dm-cube.com/app-gw/config/getCountDownConfig',
url: 'http://app-gw-dev.dm-cube.com/app-gw/config/getCountDownConfig',
method: 'POST',
headers: {
"content-type": "application/json;charset=utf-8",
"X-DEVICE-ID": "",
"X-APP-VERSION": "3.7.10",
"X-LOGIN-TYPE": "app",
"X-DEVICE-TYPE": "2",
"X-USER-AGENT":
"Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",
"X-LONGITUDE": 113.31634307077927,
"X-LATITUDE": 23.123067240730254,
"X-CITY": "5bm/5bee5biC",
"X-CHANNEL-CODE": "AppStore"
},
parameters: '{}',
responseBody: {
"code": "00000",
"message": "成功",
"payload": {"enable": true, "countDown": 5, "deadline": 18000000}
},
);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.