Class AccessLogSupport

  • All Implemented Interfaces:
    Service

    public final class AccessLogSupport
    extends Object
    implements Service
    Service that adds support for Access logging to WebServer.
    • Field Detail

      • DEFAULT_LOGGER_NAME

        public static final String DEFAULT_LOGGER_NAME
        Name of the Logger 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:
        AccessLogHandler, Constant Field Values
    • Method Detail

      • create

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

        public static AccessLogSupport create​(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 AccessLogSupport.Builder builder()
        A new fluent API builder to create Access log support instance.
        Returns:
        a new builder