Debugging

Android VGS Collect SDK generates different debug-logs to highlight important information for developer during the work process. We print all information by default. When it became too verbose for you, there is ability to change default behaviour and minimize or disable debug information.

You may always debug your setup with Access Logger, by seeing requests statuses, payload diffs, matched information etc.

Log levels

VGS Collect SDK defines 3 log levels for controlling debug-logs.

  • DEBUG. Default setting. We print all information about processing. It includes errors, warnings, notifications, debug messages, requests, and responses.

  • WARN. This setting allows you to minimize information and print only errors, warnings.

  • NONE. Disable debug logs.

You can switch the debug-log level with setLogLevel method.

VGSCollectLogger.logLevel = VGSCollectLogger.Level.WARN

The isDebugEnabled() The method helps you to check if the debug-log is enabled.

Don't forget to disable logs for you production Application.

Disable logging

To disable all logging activities you can use setEnabled() method.

VGSCollectLogger.isEnabled = false

Last updated