Comments (2)
@Vovcharaa you can try this
Future<String> doSomething() async {
_dio.interceptors.removeWhere((element) => element is PrettyDioLogger);
try {
final response = await _dio.get(url);
return 'bla';
} catch (e) {
return _handleErrors(e);
} finally {
_dio.interceptors.add(PrettyDioLogger(
requestHeader: true,
requestBody: true,
responseBody: true,
responseHeader: false,
error: true,
compact: true,
));
}
}
from pretty_dio_logger.
user the new filter callback
from pretty_dio_logger.
Related Issues (20)
- Plans to support dio v4.0 ?
- Have any option to print log as JSON format? HOT 2
- How to use debugPrint HOT 2
- [Feature Request]: Add curl logging option HOT 2
- Logging in main Thread HOT 1
- Log timings? HOT 1
- Request to add null safety support HOT 1
- publish 1.2.0 as a stable version
- Compacting ResponseType.bytes ?
- Error: Member not found: 'response'. (after upgrading to dio 5.0.0) HOT 1
- How to configure log not to display in release mode HOT 2
- Adding different colors with color option. HOT 1
- I added API response time in logs HOT 2
- Not working in flutter 3.10.1 HOT 2
- Add QueuedPrettyDioLogger that extends `QueuedInterceptorsWrapper `
- Response body is not formatted
- Add filter to enable or not HOT 1
- Log not shows up in Android STudio Iguana HOT 1
- Status in response filter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pretty_dio_logger.