http_extensions_log 0.1.2
http_extensions_log: ^0.1.2 copied to clipboard

An http extension that logs all requests

http_extensions : log #

An [http extension] that logs requests.

Usage #

final client = ExtendedClient(
  inner: Client(),
  extensions: [
        logger: Logger("HTTP"),
        defaultOptions: LogOptions(
          const LogOptions(
            level: Level.fine // The logging level (on logger)
            isEnabled: true, // Indicates whether the logger is enabled.
            logContent: false // Indicates whether sent body and received content should be logged.
            logHeaders: true // Indicates whether headers should be logged.