Defining logs

Report a typo

Complete the code so that it creates a valid Logger with the fully qualified name of the current class.

Java
public class VideoController {
    private static final Logger LOGGER = LoggerFactory.getLogger(____________);

    public VideoController() {
	
    }

    public void playVideo() {
        LOGGER.info("Starting video play method");
    }
}
Kotlin
class VideoController {
    fun playVideo() {
        LOGGER.info("Starting video play method")
    }

    companion object {
        private val LOGGER: Logger = LoggerFactory.getLogger(____________)
    }
}
Select one option from the list
___

Create a free account to access the full topic