Class LoggerHandler
- java.lang.Object
- 
- io.vertx.reactivex.ext.web.handler.LoggerHandler
 
- 
- All Implemented Interfaces:
- Handler<RoutingContext>,- io.vertx.lang.rx.RxDelegate,- PlatformHandler
 
 public class LoggerHandler extends Object implements io.vertx.lang.rx.RxDelegate, PlatformHandler, Handler<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. Logs will be produced with the appropriate severity level depending on the status code of the response. To capture the logs configure the logger in your logging configuration with the name:io.vertx.ext.web.handler.LoggerHandler.NOTE: This class has been automatically generated from the originalnon RX-ified interface using Vert.x codegen.
- 
- 
Field SummaryFields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<LoggerHandler>__TYPE_ARGstatic LoggerFormatDEFAULT_FORMAT
 - 
Constructor SummaryConstructors Constructor Description LoggerHandler(LoggerHandler delegate)LoggerHandler(Object delegate)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoggerHandlercreate()Create a handler with default formatstatic LoggerHandlercreate(boolean immediate, LoggerFormat format)Create a handler with he specified formatstatic LoggerHandlercreate(LoggerFormat format)Create a handler with he specified formatLoggerHandlercustomFormatter(LoggerFormatter formatter)Set the custom formatter to be used by the handler.booleanequals(Object o)LoggerHandlergetDelegate()voidhandle(RoutingContext event)Something has happened, so handle it.inthashCode()static LoggerHandlernewInstance(LoggerHandler arg)StringtoString()
 
- 
- 
- 
Field Detail- 
__TYPE_ARGpublic static final io.vertx.lang.rx.TypeArg<LoggerHandler> __TYPE_ARG 
 - 
DEFAULT_FORMATpublic static final LoggerFormat DEFAULT_FORMAT 
 
- 
 - 
Constructor Detail- 
LoggerHandlerpublic LoggerHandler(LoggerHandler delegate) 
 - 
LoggerHandlerpublic LoggerHandler(Object delegate) 
 
- 
 - 
Method Detail- 
getDelegatepublic LoggerHandler getDelegate() - Specified by:
- getDelegatein interface- PlatformHandler
- Specified by:
- getDelegatein interface- io.vertx.lang.rx.RxDelegate
 
 - 
handlepublic void handle(RoutingContext event) Something has happened, so handle it.- Specified by:
- handlein interface- Handler<RoutingContext>
- Specified by:
- handlein interface- PlatformHandler
- Parameters:
- event- the event to handle
 
 - 
createpublic static LoggerHandler create() Create a handler with default format- Returns:
- the handler
 
 - 
createpublic static LoggerHandler create(LoggerFormat format) Create a handler with he specified format- Parameters:
- format- the format
- Returns:
- the handler
 
 - 
createpublic static LoggerHandler create(boolean immediate, LoggerFormat format) Create a handler with he specified format- Parameters:
- immediate- true if logging should occur as soon as request arrives
- format- the format
- Returns:
- the handler
 
 - 
customFormatterpublic LoggerHandler customFormatter(LoggerFormatter formatter) Set the custom formatter to be used by the handler.- Parameters:
- formatter- the formatter
- Returns:
- the formatted log string
 
 - 
newInstancepublic static LoggerHandler newInstance(LoggerHandler arg) 
 
- 
 
-