flutter_dmcb_logger
Flutter日志库
!console输出折叠 !app-log记录 !app-net记录
特性
- IDEA使用
Grep Console
插件支持内容折叠。 - App支持查看日志记录。
安装
在 pubspec.yaml
中添加
dependencies:
flutter_dmcb_logger: ^0.0.1
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}
},
);
Libraries
- flutter_dmcb_logger
- json_view/json_view
- json_view/src/models/json_color_scheme
- json_view/src/models/json_config_data
- json_view/src/models/json_style_scheme
- json_view/src/painters/arrow_painter
- json_view/src/painters/value_background_painter
- json_view/src/widgets/arrow_widget
- json_view/src/widgets/json_config
- json_view/src/widgets/json_view
- json_view/src/widgets/list_tile
- json_view/src/widgets/map_tile
- json_view/src/widgets/simple_tiles
- json_view/src/widgets/string_tile
- net/net_cell
- net/net_entity
- net/net_type
- net/net_view
- page/json_view_page
- page/logger_list_page
- page/overlay_debug_view
- print/print_cell
- print/print_entity
- print/print_type
- print/print_view
- util/config
- util/helper
- util/logger