Determine Log Type

Report a typo

Select the log message that corresponds to the startServer method of the code below.

Java
@Component
public class ServerController {
    private static final Logger LOGGER = LoggerFactory.getLogger(ServerController.class);

    public ServerController() {
	
    }

    public void startServer() {
        LOGGER.warn("Server is getting started, it may have previously crashed!");
    }
}
Kotlin
@Component
class ServerController {
    fun startServer() {
        LOGGER.warn("Server is getting started, it may have previously crashed!")
    }

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

Create a free account to access the full topic