OtvSdkLog

object OtvSdkLog

SDK logging utility.

Levels are numeric and ordered by verbosity: LOG_LEVEL_ALWAYS (0), LOG_LEVEL_INFO (1), LOG_LEVEL_DEBUG (2), and LOG_LEVEL_VERBOSE (3). Use setLogLevel to control output.

Properties

Link copied to clipboard
const val ENTER: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val ENTER_WITH: String
Link copied to clipboard
const val LEAVE: String
Link copied to clipboard
const val LEAVE_WITH: String
Link copied to clipboard
const val LOG_LEVEL_ALWAYS: Int = 0
Link copied to clipboard
const val LOG_LEVEL_DEBUG: Int = 2
Link copied to clipboard
const val LOG_LEVEL_INFO: Int = 1
Link copied to clipboard
const val LOG_LEVEL_VERBOSE: Int = 3
Link copied to clipboard
const val MAX_LOG_LENGTH: Int = 512
Link copied to clipboard
const val MAX_LOG_SIZE: Int = 900
Link copied to clipboard
const val TAG: String

Functions

Link copied to clipboard
fun always(tag: String, msg: String)
Link copied to clipboard
Link copied to clipboard
fun d(tag: String, msg: String)
fun d(tag: String, msg: String, tr: Throwable)
Link copied to clipboard
fun e(tag: String, msg: String)
fun e(tag: String, msg: String, tr: Throwable)
Link copied to clipboard
fun i(tag: String, msg: String)
fun i(tag: String, msg: String, tr: Throwable)
Link copied to clipboard

Returns the currently configured SDK log level.

Link copied to clipboard
Link copied to clipboard
fun setLogLevel(logLevel: Int)

Sets the global SDK log level.

Link copied to clipboard
fun <T> trace(tag: String, functionName: String, block: Callable<T>): T
Link copied to clipboard
fun v(tag: String, msg: String)
fun v(tag: String, msg: String, tr: Throwable)
Link copied to clipboard
fun w(tag: String, msg: String)
fun w(tag: String, msg: String, tr: Throwable)