Logging

The Didomi SDK on Android will log various informational and error messages. We use the standard android.util.Log mechanism to log messages.

Format

Messages logged by the SDK use the tag Didomi to indicate their origin.

Example:

Levels

We use the standard log levels supported by android.util.Log: DEBUG, ERROR, INFO, VERBOSE, and WARN.

You can decide what level of messages should be logged by the SDK by calling the setLogLevel function before initialize

Didomi.getInstance().setLogLevel(android.util.Log.INFO);
Didomi.getInstance().initialize(...);
Didomi.getInstance().setLogLevel(android.util.Log.INFO);
Didomi.getInstance().initialize(...);

Make sure that the call to setLogLevel is done before the call to initialize or some messages will be logged at the wrong level.

Last updated