public class AccessLogOptions
extends java.lang.Object
| Constructor and Description |
|---|
AccessLogOptions()
Default constructor
|
AccessLogOptions(AccessLogOptions other)
Copy constructor
|
AccessLogOptions(io.vertx.core.json.JsonObject json)
Create an settings from JSON
|
| Modifier and Type | Method and Description |
|---|---|
io.vertx.ext.web.handler.LoggerFormat |
getFormat() |
boolean |
isImmediate() |
AccessLogOptions |
setFormat(io.vertx.ext.web.handler.LoggerFormat format)
Set format of access log.
|
AccessLogOptions |
setImmediate(boolean immediate)
Configure when to collect access log.
|
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
public AccessLogOptions()
public AccessLogOptions(AccessLogOptions other)
other - the instance to copypublic AccessLogOptions(io.vertx.core.json.JsonObject json)
json - the JSONpublic io.vertx.core.json.JsonObject toJson()
public boolean isImmediate()
public AccessLogOptions setImmediate(boolean immediate)
immediate - log access after request arrives (true), or after response sent (false)public io.vertx.ext.web.handler.LoggerFormat getFormat()
public AccessLogOptions setFormat(io.vertx.ext.web.handler.LoggerFormat format)
format - format of the access log