java.lang.Object
io.helidon.webserver.accesslog.AccessLogFeature
- All Implemented Interfaces:
io.helidon.builder.api.RuntimeType.Api<AccessLogConfig>,io.helidon.common.config.NamedService,ServerFeature
public final class AccessLogFeature
extends Object
implements ServerFeature, io.helidon.builder.api.RuntimeType.Api<AccessLogConfig>
Service that adds support for Access logging to Server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.spi.ServerFeature
ServerFeature.RoutingBuilders, ServerFeature.ServerFeatureContext, ServerFeature.SocketBuilders -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of theSystem.getLogger(String)used to log access log records. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessLogConfig.Builderbuilder()A new fluent API builder to create Access log support instance.static AccessLogFeaturecreate()Create Access log support with default configuration.static AccessLogFeaturecreate(io.helidon.config.Config config) Create Access log support configured fromConfig.static AccessLogFeaturecreate(AccessLogConfig config) Create a new instance from its configuration.static AccessLogFeaturecreate(Consumer<AccessLogConfig.Builder> builderConsumer) Create a new instance customizing its configuration.name()voidsetup(ServerFeature.ServerFeatureContext featureContext) type()
-
Field Details
-
DEFAULT_LOGGER_NAME
Name of theSystem.getLogger(String)used to log access log records. The message logged contains all information, so the format should be modified to only log the message.- See Also:
-
-
Method Details
-
create
Create Access log support with default configuration.- Returns:
- a new access log support to be registered with WebServer routing
-
create
Create Access log support configured fromConfig.- Parameters:
config- to configure a new access log support instance- Returns:
- a new access log support to be registered with WebServer routing
-
builder
A new fluent API builder to create Access log support instance.- Returns:
- a new builder
-
create
Create a new instance from its configuration.- Parameters:
config- configuration- Returns:
- a new feature
-
create
Create a new instance customizing its configuration.- Parameters:
builderConsumer- consumer of configuration- Returns:
- a new feature
-
setup
- Specified by:
setupin interfaceServerFeature
-
prototype
- Specified by:
prototypein interfaceio.helidon.builder.api.RuntimeType.Api<AccessLogConfig>
-
name
- Specified by:
namein interfaceio.helidon.common.config.NamedService
-
type
- Specified by:
typein interfaceio.helidon.common.config.NamedService
-