http_extensions_log 0.1.2

Dart native js
Flutter Android iOS web

An http extension that logs all requests

http_extensions : log #

An [http extension] that logs requests.

Usage #

final client = ExtendedClient(
  inner: Client(),
  extensions: [
    LogExtension(
        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.
        )),
  ],
);