Log some errors

Report a typo

Select all possible ways to log an error message.

import org.slf4j.Logger
import org.slf4j.LoggerFactory

class Example {
    private val LOG: Logger = LoggerFactory.getLogger(Example::class.java)

    fun log(msg: String) {
        __________ // What can we place here?
    }
}

fun main() {
    val exampleLogger = Example()
    try {
        throw RuntimeException("Kernel panic!");
    } catch (e: RuntimeException) {
        e.message?.let { exampleLogger.log(it) }
    }
}
Select one or more options from the list
___

Create a free account to access the full topic