Package io.helidon.webserver.accesslog
Class AccessLogRoutingFeature
java.lang.Object
io.helidon.webserver.accesslog.AccessLogRoutingFeature
- All Implemented Interfaces:
io.helidon.common.Weighted,HttpFeature,ServerLifecycle,Comparable<io.helidon.common.Weighted>,Supplier<HttpFeature>
public final class AccessLogRoutingFeature
extends Object
implements HttpFeature, io.helidon.common.Weighted
Service that adds support for Access logging to Server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent API Builder forAccessLogRoutingFeature. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of theSystem.getLogger(String)used to log access log records.Fields inherited from interface io.helidon.common.Weighted
DEFAULT_WEIGHT -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A new fluent API builder to create Access log support instance.static AccessLogRoutingFeaturecreate()Create Access log support with default configuration.static AccessLogRoutingFeaturecreate(io.helidon.config.Config config) Create Access log support configured fromConfig.voidsetup(HttpRouting.Builder routing) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.webserver.http.HttpFeature
get, socket, socketRequiredMethods inherited from interface io.helidon.webserver.ServerLifecycle
afterStop, beforeStartMethods inherited from interface io.helidon.common.Weighted
compareTo, weight
-
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
-
setup
- Specified by:
setupin interfaceHttpFeature
-