public interface LoggerHandler extends Handler<RoutingContext>
| Modifier and Type | Field and Description |
|---|---|
static LoggerFormat |
DEFAULT_FORMAT |
| Modifier and Type | Method and Description |
|---|---|
static LoggerHandler |
create()
Create a handler with default format
|
static LoggerHandler |
create(boolean immediate,
LoggerFormat format)
Create a handler with he specified format
|
static LoggerHandler |
create(LoggerFormat format)
Create a handler with he specified format
|
LoggerHandler |
customFormatter(java.util.function.Function<HttpServerRequest,String> formatter)
Deprecated.
Superseded by
customFormatter(LoggerFormatter) |
LoggerHandler |
customFormatter(LoggerFormatter formatter)
Set the custom formatter to be used by the handler.
|
static final LoggerFormat DEFAULT_FORMAT
static LoggerHandler create()
static LoggerHandler create(LoggerFormat format)
format - the formatstatic LoggerHandler create(boolean immediate, LoggerFormat format)
immediate - true if logging should occur as soon as request arrivesformat - the format@Deprecated LoggerHandler customFormatter(java.util.function.Function<HttpServerRequest,String> formatter)
customFormatter(LoggerFormatter)formatter - the formatting functionIllegalStateException - if current format is not LoggerFormat.CUSTOMLoggerHandler customFormatter(LoggerFormatter formatter)
formatter - the formatterIllegalStateException - if current format is not LoggerFormat.CUSTOMCopyright © 2021 Eclipse. All rights reserved.