public class AccessLogOptions extends 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 |
isEnabled() |
boolean |
isImmediate() |
AccessLogOptions |
setEnabled(boolean enabled)
Sets if logging access to the Knot.x HTTP server is enabled or not.
|
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 isEnabled()
public AccessLogOptions setEnabled(boolean enabled)
enabled - true if logging access log is enabledpublic 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 logCopyright © 2016–2020. All rights reserved.