class Logger
(source)
A wrapper for the Log object providing a more convenient API for logging.
tag
- The tag to be used for log messages send via this logger.
Logger(tag: String? = null)
A wrapper for the Log object providing a more convenient API for logging. |
fun debug(message: String? = null, throwable: Throwable? = null): Unit
Send a DEBUG log message. |
|
fun error(message: String? = null, throwable: Throwable? = null): Unit
Send a ERROR log message. |
|
fun info(message: String? = null, throwable: Throwable? = null): Unit
Send a INFO log message. |
|
fun measure(message: String, block: () -> Unit): Unit
Measure the time it takes to execute the provided block and print a log message before and after executing the block. |
|
fun warn(message: String? = null, throwable: Throwable? = null): Unit
Send a WARN log message. |
fun debug(message: String? = null, throwable: Throwable? = null): Unit
Send a DEBUG log message. |
|
fun error(message: String? = null, throwable: Throwable? = null): Unit
Send a ERROR log message. |
|
fun info(message: String? = null, throwable: Throwable? = null): Unit
Send a INFO log message. |
|
fun measure(message: String, block: () -> Unit): Unit
Measure the time it takes to execute the provided block and print a log message before and after executing the block. |
|
fun warn(message: String? = null, throwable: Throwable? = null): Unit
Send a WARN log message. |