Level enum

Defines the logging levels available for HTTP logging.

Warning: Higher logging levels may impact HTTP request performance:

  • headers level adds minimal overhead
  • body level can significantly slow down requests as it reads and processes the entire request/response body content
Inheritance
Available extensions

Values

none → const Level

No logs will be recorded.

basic → const Level

Logs basic information about the HTTP request and response.

headers → const Level

Logs basic information along with request and response headers.

Note: Minimal performance impact.

body → const Level

Logs complete request and response headers and bodies.

Warning: This level can significantly impact performance as it reads and processes the entire request/response body content. Use with caution in production environments.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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<Level>
A constant List of the values in this enum, in order of their declaration.