Package io.vertx.mutiny.ext.web.handler
Class LoggerHandler
- java.lang.Object
 - 
- io.vertx.mutiny.ext.web.handler.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 theoriginalnon Mutiny-ified interface using Vert.x codegen. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static TypeArg<LoggerHandler>__TYPE_ARGstatic io.vertx.ext.web.handler.LoggerFormatDEFAULT_FORMAT 
- 
Constructor Summary
Constructors Constructor Description LoggerHandler(io.vertx.ext.web.handler.LoggerHandler delegate)LoggerHandler(Object delegate) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaccept(RoutingContext item)static LoggerHandlercreate()static LoggerHandlercreate(boolean immediate, io.vertx.ext.web.handler.LoggerFormat format)static LoggerHandlercreate(io.vertx.ext.web.handler.LoggerFormat format)LoggerHandlercustomFormatter(LoggerFormatter formatter)LoggerHandlercustomFormatter(Function<HttpServerRequest,String> formatter)Deprecated.Superseded bycustomFormatter(LoggerFormatter)booleanequals(Object o)io.vertx.ext.web.handler.LoggerHandlergetDelegate()voidhandle(RoutingContext arg0)inthashCode()static LoggerHandlernewInstance(io.vertx.ext.web.handler.LoggerHandler arg)StringtoString() 
 - 
 
- 
- 
Field Detail
- 
__TYPE_ARG
public static final TypeArg<LoggerHandler> __TYPE_ARG
 
- 
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()
 
- 
handle
public void handle(RoutingContext arg0)
- Specified by:
 handlein interfaceio.vertx.core.Handler<RoutingContext>
 
- 
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 arrivesformat- the format- Returns:
 - the handler
 
 
- 
customFormatter
@Deprecated public LoggerHandler customFormatter(Function<HttpServerRequest,String> formatter)
Deprecated.Superseded bycustomFormatter(LoggerFormatter)- Parameters:
 formatter- the formatting function- Returns:
 - the formatted log string
 
 
- 
customFormatter
public LoggerHandler customFormatter(LoggerFormatter formatter)
- Parameters:
 formatter- the formatter- Returns:
 - the formatted log string
 
 
- 
accept
public void accept(RoutingContext item)
- Specified by:
 acceptin interfaceConsumer<RoutingContext>
 
- 
newInstance
public static LoggerHandler newInstance(io.vertx.ext.web.handler.LoggerHandler arg)
 
 - 
 
 -