Search in sources :

Example 1 with AccessLog

use of reactor.netty.http.server.logging.AccessLog in project reactor-netty by reactor.

the class CustomLogAccessFormatApplication method main.

public static void main(String[] args) {
    DisposableServer server = HttpServer.create().accessLog(true, x -> AccessLog.create("method={}, uri={}", x.method(), x.uri())).bindNow();
    server.onDispose().block();
}
Also used : HttpServer(reactor.netty.http.server.HttpServer) DisposableServer(reactor.netty.DisposableServer) AccessLog(reactor.netty.http.server.logging.AccessLog) DisposableServer(reactor.netty.DisposableServer)

Aggregations

DisposableServer (reactor.netty.DisposableServer)1 HttpServer (reactor.netty.http.server.HttpServer)1 AccessLog (reactor.netty.http.server.logging.AccessLog)1