Example usage for org.springframework.boot.web.embedded.netty NettyWebServer logger

List of usage examples for org.springframework.boot.web.embedded.netty NettyWebServer logger

Introduction

In this page you can find the example usage for org.springframework.boot.web.embedded.netty NettyWebServer logger.

Prototype

Log logger

To view the source code for org.springframework.boot.web.embedded.netty NettyWebServer logger.

Click Source Link

Usage

From source file:org.springframework.boot.web.embedded.netty.NettyWebServer.java

@Override
public void start() throws WebServerException {
    if (this.disposableServer == null) {
        try {//from  w w  w . j  a  va 2  s. com
            this.disposableServer = startHttpServer();
        } catch (Exception ex) {
            ChannelBindException bindException = findBindException(ex);
            if (bindException != null) {
                throw new PortInUseException(bindException.localPort());
            }
            throw new WebServerException("Unable to start Netty", ex);
        }
        NettyWebServer.logger.info("Netty started on port(s): " + getPort());
        startDaemonAwaitThread(this.disposableServer);
    }
}