SmartLogHelper

object SmartLogHelper

Helper class to initialise the library and set the logging level.

Author

Umang Chamaria

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
initializeLogger
Link copied to clipboard
fun initializeLogger(context: Context)
Initialize the smart logger SDK to print logs when it is a debug build.
toString
Link copied to clipboard
open fun toString(): String

Properties

LOG_LEVEL
Link copied to clipboard
var LOG_LEVEL: Int
Log level for loggingDefault log level LOG_LEVEL_INFO
LOG_LEVEL_DEBUG
Link copied to clipboard
const val LOG_LEVEL_DEBUG: Int = 4
Priority constant for the log method; use debug().
LOG_LEVEL_ERROR
Link copied to clipboard
const val LOG_LEVEL_ERROR: Int = 2
Priority constant for the log method; use error().
LOG_LEVEL_INFO
Link copied to clipboard
const val LOG_LEVEL_INFO: Int = 1
Priority constant for the log method; use info().
LOG_LEVEL_VERBOSE
Link copied to clipboard
const val LOG_LEVEL_VERBOSE: Int = 5
Priority constant for the log method; use verbose().
LOG_LEVEL_WARN
Link copied to clipboard
const val LOG_LEVEL_WARN: Int = 3
Priority constant for the log method; use warn().
LOG_STATUS
Link copied to clipboard
var LOG_STATUS: Boolean = false
Default log status.
LOG_TAG
Link copied to clipboard
var LOG_TAG: String
Default log tag.