sdk-common / com.tomtom.online.sdk.common.util / LogUtils

LogUtils

open class LogUtils

Util class to collecting and displaying logs.

Types

DelegateUncaughtExceptionHandler

open class DelegateUncaughtExceptionHandler : UncaughtExceptionHandler

Custom crash handler for process. Handler run email application with formatted email and attached file with logs. Crash handler delegate crash forward. Crashlitics or other crash handler still works with this delegate.

LogFileCollector

open class LogFileCollector

Collect logs into file

Functions

checkMainThread

open static fun checkMainThread(): Unit

collectLogsToFile

open static fun collectLogsToFile(logFilePath: String!): Unit

enableLogs

open static fun enableLogs(logLevel: Int): Unit

enable logs. Print logs to console. Set to see all logs

registerCrashObserver

open static fun registerCrashObserver(context: Context!, logsFilePath: Uri!, email: String!): Unit

When process crash, logs collected by LogUtils#collectLogsToFile(String) will be proposed to send by email app to the provided email.