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),
]);
Inheritance

Constructors

LogLevel()
const

Values

NONE → const LogLevel
BASIC → const LogLevel
HEADERS → const LogLevel
BODY → const LogLevel

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<LogLevel>
A constant List of the values in this enum, in order of their declaration.