api_network_logger library

A production-ready, publishable Flutter package that transparently captures, logs, compresses, and inspects your application's network traffic, offline events, and navigation route transitions into a secure on-device SQLite database.

Classes

ApiLogEntry
Represents a captured API request and response log.
ApiLogger
The central entry point and singleton hub for the api_logger_flutter library.
ApiLoggerConfig
Configuration class defining the behavior of the ApiLogger.
ApiLoggerConsoleSheet
Dynamic console viewer holding tab bars, full search filters, and detail expansions.
ApiLoggerNavigatorObserver
A standard NavigatorObserver that transparently intercepts page transitions and logs them into local database history.
ApiLoggerOverlay
Floating Trigger overlay widget for debugging API calls & routes. Tree-shaken out of production automatically unless enableOverlay is explicitly forced.
ApiLogListTile
Fully responsive expansion list tile for ApiLogEntries.
DioApiLoggerInterceptor
Dio Interceptor that transparently intercepts, times, and logs API requests/responses. Correctly pairs parallel concurrent requests using a generated tracking ID.
HeatmapEvent
Represents a captured pointer-down event for heatmaps (coordinates, screen size, route, and timestamp).
HeatmapListener
Wraps your main application (e.g. at the root of MaterialApp) to capture and record user pointer tap events programmatically into the local heatmap database.
HttpApiLoggerClient
An HTTP Client wrapper for the http package that intercepts, times, and logs API calls. Buffers the streamed response bytes safely and re-emits a fresh stream so client streams never break.
LogRetentionPreset
Predefined duration helpers for local log auto-retention configuration.
LogStorage
Abstract contract defining the local log persistence layer. This allows the backing database (default: sqflite) to be completely swappable.
Represents an application page routing event.
Visual navigation/routing entry representation.
Redactor
Security engine that strips PII, authorization details, passwords, and credentials from requests and responses prior to local storage.
SystemTraceLog
Represents a captured system or device telemetry event (e.g., startup context, crash, memory spikes).

Exceptions / Errors

ApiLoggerExportException
Custom Exception thrown when log exporting fails.