Class LogConfig
java.lang.Object
io.vertx.core.net.LogConfig
Generic purpose logging of network operations configuration.
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleansetDataFormat(ByteBufFormat dataFormat) Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.setEnabled(boolean enabled) Set to true to enable logging: Netty's pipeline is configured for logging on Netty's logger.
-
Constructor Details
-
LogConfig
public LogConfig() -
LogConfig
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Returns:
- when logging is enabled
-
setEnabled
Set to true to enable logging: Netty's pipeline is configured for logging on Netty's logger.- Parameters:
enabled- true for logging the network activity- Returns:
- a reference to this, so the API can be used fluently
-
getDataFormat
- Returns:
- per stream Netty's logging handler's data format.
-
setDataFormat
Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.- Parameters:
dataFormat- the format to use- Returns:
- a reference to this, so the API can be used fluently
-