setLogEnabled

abstract fun setLogEnabled(enabled: Boolean)

Enables or disables SDK's logs.

If you pass true into this method, the SDK will log information which you will not be able to receive with AdEventListener or other interfaces.

For example, you can see SDK's requests to and responses from the server. This can be useful when debugging your application which uses the SDK.

Note: SDK's logger is a singleton, so that enabling or disabling logs will persist even after the AdService instance is destroyed.

Parameters

enabled

If debug logs enabled.