# dio_log
**Repository Path**: welnstar/dio_log
## Basic Information
- **Project Name**: dio_log
- **Description**: No description available
- **Primary Language**: Dart
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-07-21
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# dio_log
[](https://pub.dev/packages/dio_log)
#### http requests log of dio
#### 基于dio的网络请求日志
### Add dependency
### 添加依赖
```
dependencies:
dio_log : ^1.3.3
```
### [github](https://github.com/flutterplugin/dio_log)
```
dio_log:
git:
url: git@github.com:flutterplugin/dio_log.git
ref: develop
```
### set interceptor of dio
### 给dio设置监听
```
dio.interceptors.add(DioLogInterceptor());
```
### Add a global hover button on your home page to jump through the log list
### 在你的主页面添加全局的悬浮按钮,用于跳转日志列表
```
///display overlay button 显示悬浮按钮
showDebugBtn(context);
///cancel overlay button 取消悬浮按钮
dismissDebugBtn();
///overlay button state of display 悬浮按钮展示状态
debugBtnIsShow()
```
### Or open a log list where you want it to be
### 或者在你期望的地方打开日志列表
```
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => HttpLogListWidget(),
),
);
```
### Other configurable parameters
### 其他可设置参数
```
/// Sets the maximum number of entries for logging 设置记录日志的最大条数
LogPoolManager.getInstance().maxCount = 100;
```
### Screenshot
### gif demo
