omega_dio_logger 1.2.0 copy "omega_dio_logger: ^1.2.0" to clipboard
omega_dio_logger: ^1.2.0 copied to clipboard

Dio interceptor that logs network calls in a pretty, easy to read format with curl command

Omega Dio logger #

pub version pub likes

Omega Dio logger is a Dio interceptor that logs network calls in easy to read format with curl command

Usage #

Install #

Add OmegaDioLogger to your Dio interceptors:

final dio = Dio();

dio.interceptors.add(const OmegaDioLogger());

// or customize interceptor
dio.interceptors.add(
  const OmegaDioLogger(
    error: true,
    request: true,
    requestHeader: true,
    requestQueryParameters: true,
    requestBody: true,
    response: true,
    responseHeader: true,
    responseBody: true,
    convertFormData: true,
    colorized: true,
    showCurl: true,
    logPrint: print,
    showLog: kDebugMode,
  ),
);
6
likes
140
pub points
78%
popularity

Publisher

verified publisheromega-r.com

Dio interceptor that logs network calls in a pretty, easy to read format with curl command

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dio

More

Packages that depend on omega_dio_logger