Logging
For logging purposes, WMT uses Logger class inside the com.wultra.android.mtokensdk.common package that prints to the console.
Note that Logger is internally using android.util.Log class with verbosity ERROR, WARNING, and DEBUG and is subjected to its internal logic.
Verbosity Level
You can limit the amount of logged information via verboseLevel static property.
| Level | Description |
|---|---|
OFF |
Silences all messages. |
ERROR |
Only errors will be printed to the console. |
WARNING (default) |
Errors and warnings will be printed to the console. |
DEBUG |
All messages will be printed to the console. |
Example configuration:
import com.wultra.android.mtokensdk.common.Logger
Logger.verboseLevel = Logger.VerboseLevel.DEBUG
Networking Logs
All requests and responses are logged in DEBUG level.
In case that you provided your own OkHttp instance, you need to setup your own logging for monitoring the traffic via the OkHttp interceptors.
Last updated on Nov 04, 2021 (12:13)
Edit on Github
Send Feedback