Class AccessLogRoutingFeature
java.lang.Object
io.helidon.webserver.accesslog.AccessLogRoutingFeature
- All Implemented Interfaces:
Weighted, HttpFeature, ServerLifecycle, Comparable<Weighted>, Supplier<HttpFeature>
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 Weighted
DEFAULT_WEIGHTModifier and TypeFieldDescriptionstatic final doubleDefault weight for any weighted component (whether it implements this interface or usesWeightannotation). -
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 Access log support configured fromConfig.voidsetup(HttpRouting.Builder routing) Method to set up a feature.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HttpFeature
get, socket, socketRequiredModifier and TypeMethodDescriptiondefault HttpFeatureget()default Stringsocket()Name of the listener socket this feature should be registered on, for automatically discovered features.default booleanWhether the socket defined inHttpFeature.socket()must be present for this feature, or it can be exposed on default socket.Methods inherited from interface ServerLifecycle
afterStart, afterStop, beforeStartModifier and TypeMethodDescriptiondefault voidafterStart(WebServer webServer) After server start.default voidAfter server stop.default voidBefore server start.
-
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
Description copied from interface:HttpFeatureMethod to set up a feature.- Specified by:
setupin interfaceHttpFeature- Parameters:
routing- routing builder
-