Vert.x - Web Logger

1 - About

Web - Log (Http log) in Vert.x

LoggerHandler is a handler which logs request information to the Vert.x logger.

3 - Example

Example with the DEFAULT LoggerFormat.

Vertx vertx = Vertx.vertx();
HttpServer httpServer = vertx.createHttpServer();
Router router = Router.router(vertx);

// The handler


4 - Format

Note: LoggerHandler is a static factory that returns the implementation LoggerHandlerImpl (code).

It support only three formats that are define via the LoggerFormat.

In version 4, you should be able to override the log method to add your own format. See issue


  • DEFAULT tries to log in a format similar to Apache log format.

remote-client - - [timestamp] "method uri version" status content-length "referrer" "user-agent"


remote-client - method uri version status content-length duration ms

  • TINY

method uri status - content-length duration

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap