withLogging

abstract fun withLogging(useLog: Boolean, enableNativeLogging: Boolean = false): T

Enables or disables logs in Scanbot SDK.

Logs are printed into LogCat as well as saved on the device. You can find them in Environment.getExternalStorageDirectory+ /debug_logs/[package_name]. Usually it is /sdcard/debug_logs/[package_name].

By default all logs are disabled. If you're using logging, consider switching it off for production builds for security and performance reasons.

This method must be called before .initialize, so it is possible to change logging settings before initializing the SDK.

Return

same instance, so calls can be chained.

Parameters

useLog

true to enable logging, false to disable logging

enableNativeLogging

set true if logging in C++ native core should be enabled. Default value is false.