List of usage examples for org.springframework.boot.web.embedded.undertow UndertowServletWebServer logger
Log logger
To view the source code for org.springframework.boot.web.embedded.undertow UndertowServletWebServer logger.
Click Source Link
From source file:org.springframework.boot.web.embedded.undertow.UndertowServletWebServer.java
@Override public void start() throws WebServerException { synchronized (this.monitor) { if (this.started) { return; }//from ww w.j a v a 2 s . c o m try { if (!this.autoStart) { return; } if (this.undertow == null) { this.undertow = createUndertowServer(); } this.undertow.start(); this.started = true; UndertowServletWebServer.logger.info("Undertow started on port(s) " + getPortsDescription() + " with context path '" + this.contextPath + "'"); } catch (Exception ex) { try { if (findBindException(ex) != null) { List<Port> failedPorts = getConfiguredPorts(); List<Port> actualPorts = getActualPorts(); failedPorts.removeAll(actualPorts); if (failedPorts.size() == 1) { throw new PortInUseException(failedPorts.iterator().next().getNumber()); } } throw new WebServerException("Unable to start embedded Undertow", ex); } finally { stopSilently(); } } } }