Package io.micronaut.controlpanel.core
Class ControlPanelUrlLogger
java.lang.Object
io.micronaut.controlpanel.core.ControlPanelUrlLogger
@Singleton
@Requires(property="micronaut.control-panel.log-url",
notEquals="false")
public class ControlPanelUrlLogger
extends Object
Logs the Control Panel URL when the application is ready.
-
Constructor Summary
ConstructorsConstructorDescriptionControlPanelUrlLogger(io.micronaut.http.server.HttpServerConfiguration serverConfiguration, ControlPanelModuleConfiguration controlPanelConfiguration, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidlogUrl(io.micronaut.discovery.event.ServiceReadyEvent event) Logs the Control Panel URL when the ServiceReadyEvent is triggered.
-
Constructor Details
-
ControlPanelUrlLogger
public ControlPanelUrlLogger(io.micronaut.http.server.HttpServerConfiguration serverConfiguration, ControlPanelModuleConfiguration controlPanelConfiguration, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
-
-
Method Details
-
logUrl
@EventListener public void logUrl(io.micronaut.discovery.event.ServiceReadyEvent event) Logs the Control Panel URL when the ServiceReadyEvent is triggered.- Parameters:
event- the ServiceReadyEvent that triggered this method call
-