public class LoggerHandlerImpl extends Object implements LoggerHandler
DEFAULT_FORMAT| Constructor and Description |
|---|
LoggerHandlerImpl(boolean immediate,
LoggerFormat format) |
LoggerHandlerImpl(LoggerFormat format) |
| Modifier and Type | Method and Description |
|---|---|
LoggerHandler |
customFormatter(Function<HttpServerRequest,String> formatter)
Set the custom formatter to be used by the handler.
|
protected void |
doLog(int status,
String message) |
void |
handle(RoutingContext context)
Something has happened, so handle it.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, createpublic LoggerHandlerImpl(boolean immediate,
LoggerFormat format)
public LoggerHandlerImpl(LoggerFormat format)
protected void doLog(int status,
String message)
public void handle(RoutingContext context)
Handlerhandle in interface Handler<RoutingContext>context - the event to handlepublic LoggerHandler customFormatter(Function<HttpServerRequest,String> formatter)
LoggerHandlercustomFormatter in interface LoggerHandlerformatter - the formatting functionCopyright © 2021. All rights reserved.