- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
HttpLogConfig.BuilderBase.HttpLogConfigImpl
Configuration of logging of the HTTP layer.
The log level is defined by loggerName() + "." + prefix, such as send or recv.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forHttpLogConfig.static classHttpLogConfig.BuilderBase<BUILDER extends HttpLogConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends HttpLogConfig> Fluent API builder base forHttpLogConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpLogConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static HttpLogConfig.Builderbuilder(HttpLogConfig instance) Create a new fluent API builder from an existing instance.static HttpLogConfigcreate()Create a new instance with default values.static HttpLogConfigDeprecated.static HttpLogConfigCreate a new instance from configuration.Base name of the logger to use when logging receive and send packets.booleanLogging of received packets.Header names whose values can be logged at debug level, except sensitive names that are always redacted.booleansendLog()Logging of sent packets.booleanWhether TRACE protocol logs can include raw protocol data.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
receiveLog
boolean receiveLog()Logging of received packets. Uses trace and debug levels on configured logger with suffix of.recv`.- Returns:
trueif logging should be enabled for received packets,falseif no logging should be done- See Also:
-
sendLog
boolean sendLog()Logging of sent packets. Uses trace and debug levels on configured logger with suffix of.send`.- Returns:
trueif logging should be enabled for sent packets,falseif no logging should be done- See Also:
-
loggerName
Base name of the logger to use when logging receive and send packets. Eithersendorrecvis added as another level depending on log direction.- Returns:
- logger name
-
safeHeaders
Set<HeaderName> safeHeaders()Header names whose values can be logged at debug level, except sensitive names that are always redacted. All other header values are redacted in protocol logs. Headers such asAuthorization, cookies, and names containingtoken,password,secret, orkeyare never logged even when configured here.- Returns:
- safe header names for protocol logging
-
unsafeRawData
boolean unsafeRawData()Whether TRACE protocol logs can include raw protocol data.This is an unsafe diagnostic option. When enabled together with TRACE logging, protocol logs can include sensitive request or response data such as header values and entity bytes. This option can only be enabled programmatically through the builder.
- Returns:
- whether raw protocol data can be logged at TRACE level
-
create(io.helidon.config.Config)