0 purchases
super network logger
super_network_logger #
Super Network Logger is a Dio interceptor for logging network calls with color, styling, and formatting support.
Features #
Formatting support
Color styling support
Json support
Fully customizable
Usage #
Simply add SuperNetworkLogger to your dio interceptors.
Dio dio = Dio();
dio.interceptors.add(SuperNetworkLogger());
// optional customization
dio.interceptors.add(
SuperNetworkLogger(
logError: true,
logRequest: true,
logResponse: true,
logErrorBody: true,
logRequestBody: true,
logResponseBody: true,
logErrorResponseHeader: true,
logRequestHeader: true,
logResponseHeader: true,
compact: true,
maxWidth: 100,
errorStyle: [Styles.RED, Styles.BLINK],
requestStyle: [Styles.YELLOW],
responseStyle: [Styles.GREEN],
logName: "SuperNetworkLogger",
),
);
copied to clipboard
Output Sample #
Success Log
Error Log
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.