Class AccessLogFeature

java.lang.Object
io.helidon.webserver.accesslog.AccessLogFeature
All Implemented Interfaces:
io.helidon.builder.api.RuntimeType.Api<AccessLogConfig>, io.helidon.common.config.NamedService, io.helidon.common.Weighted, ServerFeature, Comparable<io.helidon.common.Weighted>

public final class AccessLogFeature extends Object implements io.helidon.common.Weighted, ServerFeature, io.helidon.builder.api.RuntimeType.Api<AccessLogConfig>
Service that adds support for Access logging to Server.
  • Field Details

  • Method Details

    • create

      public static AccessLogFeature create()
      Create Access log support with default configuration.
      Returns:
      a new access log support to be registered with WebServer routing
    • create

      public static AccessLogFeature create(io.helidon.config.Config config)
      Create Access log support configured from Config.
      Parameters:
      config - to configure a new access log support instance
      Returns:
      a new access log support to be registered with WebServer routing
    • builder

      public static AccessLogConfig.Builder builder()
      A new fluent API builder to create Access log support instance.
      Returns:
      a new builder
    • create

      public static AccessLogFeature create(AccessLogConfig config)
      Create a new instance from its configuration.
      Parameters:
      config - configuration
      Returns:
      a new feature
    • create

      public static AccessLogFeature create(Consumer<AccessLogConfig.Builder> builderConsumer)
      Create a new instance customizing its configuration.
      Parameters:
      builderConsumer - consumer of configuration
      Returns:
      a new feature
    • setup

      public void setup(ServerFeature.ServerFeatureContext featureContext)
      Specified by:
      setup in interface ServerFeature
    • prototype

      public AccessLogConfig prototype()
      Specified by:
      prototype in interface io.helidon.builder.api.RuntimeType.Api<AccessLogConfig>
    • name

      public String name()
      Specified by:
      name in interface io.helidon.common.config.NamedService
    • type

      public String type()
      Specified by:
      type in interface io.helidon.common.config.NamedService
    • weight

      public double weight()
      Specified by:
      weight in interface io.helidon.common.Weighted