Class LoggerHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>

    public class LoggerHandler
    extends Object
    implements io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
    A handler which logs request information to the Vert.x logger. You should mount this handler before any handler that could fail the routing context

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Field Detail

      • DEFAULT_FORMAT

        public static final io.vertx.ext.web.handler.LoggerFormat DEFAULT_FORMAT
    • Constructor Detail

      • LoggerHandler

        public LoggerHandler​(io.vertx.ext.web.handler.LoggerHandler delegate)
      • LoggerHandler

        public LoggerHandler​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.ext.web.handler.LoggerHandler getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • create

        public static LoggerHandler create()
        Returns:
        the handler
      • create

        public static LoggerHandler create​(io.vertx.ext.web.handler.LoggerFormat format)
        Parameters:
        format - the format
        Returns:
        the handler
      • create

        public static LoggerHandler create​(boolean immediate,
                                           io.vertx.ext.web.handler.LoggerFormat format)
        Parameters:
        immediate - true if logging should occur as soon as request arrives
        format - the format
        Returns:
        the handler
      • customFormatter

        public LoggerHandler customFormatter​(LoggerFormatter formatter)
        Parameters:
        formatter - the formatter
        Returns:
        the formatted log string
      • newInstance

        public static LoggerHandler newInstance​(io.vertx.ext.web.handler.LoggerHandler arg)