Log lines

Report a typo

How many log lines will this code output if we set the debug logger level for the logback package?

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

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

    init{
        LOG.debug("Example online")
    }

    fun log() {
        LOG.warn("Logger level online")
        LOG.trace("main method online")
        LOG.info("All systems nominal")
        LOG.error("No args passed!")
    }
}

fun main() {
    Example().log()
}
Enter a number
___

Create a free account to access the full topic