Skip to content

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

License

Notifications You must be signed in to change notification settings

Omega-R/omega_dio_logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dart style pub version pub likes

Use carapacik_dio_logger instead this package

OmegaDioLogger 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,
  ),
);

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages