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) }
}
}