Class UndertowConfiguration.AccessLogConfiguration

java.lang.Object
io.micronaut.servlet.undertow.UndertowConfiguration.AccessLogConfiguration
All Implemented Interfaces:
io.micronaut.core.util.Toggleable
Enclosing class:
UndertowConfiguration

@ConfigurationProperties("access-log") @Requires(property="micronaut.server.undertow.access-log.enabled", value="true") public static class UndertowConfiguration.AccessLogConfiguration extends Object implements io.micronaut.core.util.Toggleable
The access log configuration.
Since:
4.8.0
  • Field Details

  • Constructor Details

    • AccessLogConfiguration

      public AccessLogConfiguration(@Named("blocking") ExecutorService executorService)
      Default constructor.
      Parameters:
      executorService - The executor to use
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      Parameters:
      enabled - Sets whether enabled.
    • getPattern

      public String getPattern()
      Returns:
      The log pattern to use.
    • setPattern

      public void setPattern(String pattern)
      Sets the underlow log pattern.

      See https://undertow.io/javadoc/1.4.x/io/undertow/server/handlers/accesslog/AccessLogHandler.html for more.

      Parameters:
      pattern - The pattern
    • getBuilder

      public io.undertow.server.handlers.accesslog.DefaultAccessLogReceiver.Builder getBuilder()
      Returns:
      The log receiver builder.