Class JettyConfiguration.JettyRequestLog

java.lang.Object
io.micronaut.servlet.jetty.JettyConfiguration.JettyRequestLog
All Implemented Interfaces:
io.micronaut.core.util.Toggleable
Enclosing class:
JettyConfiguration

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

  • Constructor Details

    • JettyRequestLog

      public JettyRequestLog()
  • Method Details

    • isEnabled

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

      public void setEnabled(boolean enabled)
      Whether access log is enabled.
      Parameters:
      enabled - True if it is enabled.
    • getPattern

      @NonNull public @NonNull String getPattern()
      The pattern to use for the access log. Defaults to EXTENDED_NCSA_FORMAT.
      Returns:
      The pattern.
    • setPattern

      public void setPattern(String pattern)
      Sets the pattern to use for the access log. Defaults to CustomRequestLog.EXTENDED_NCSA_FORMAT.
      Parameters:
      pattern - The pattern