reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

Easy logging

Open appsforartists opened this issue 10 years ago • 0 comments

Reqwest should support logging levels. At a minimum, I'd like to be able to tell it:

  • Log nothing
  • Log method and URL
    • with headers & cookies
  • Log response before parsing

It could be as simple as:

Reqwest.logLevel = ReqwestLogLevel.SMALL_REQUEST;

// where

ReqwestLogLevel = {
    "NONE":               0,
    "SMALL_REQUEST":     10,
    "BIG_REQUEST":       20,
    "BIG_RESPONSE":     110
}

appsforartists avatar Sep 08 '14 22:09 appsforartists