LogLevel enum
Log level of BASIC will print only the basic info to console such as Method Type, Request URL and Request Body. In case of Response it will print only status code and content-length
HttpWithMiddleware http = HttpWithMiddleware.build(middlewares: [
HttpLogger(logLevel: LogLevel.BASIC),
]);
Log level of HEADERS will print only the headers info to console
```dart
HttpWithMiddleware http = HttpWithMiddleware.build(middlewares: [
HttpLogger(logLevel: LogLevel.HEADERS),
]);
Log level of BODY will print everything. For e.g. it will print Method Name, Request URL, Request Headers and Request Body. In case of Response it will print Method Name, Request URL, Response Headers and Response Body.
HttpWithMiddleware http = HttpWithMiddleware.build(middlewares: [
HttpLogger(logLevel: LogLevel.BODY),
]);
Constructors
- LogLevel()
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited