Logging for networking

HttpDebugSettings

This class is helpful when debugging network requests and responses. Level of verbosity can be set with a static method setDebugMode(HttpDebugSettings.DebugMode mode).

Verbosity Value
No logging None
Log request type, url, size of request body, response status and size of response body Basic
Log request and response headers, request type, url, response status. Headers
Log request and response headers and body. Body

By default logging of networking connection is set to None.

Example of usage:

1
HttpDebugSettings.setDebugMode(HttpDebugSettings.DebugMode.Basic);