Class TomcatConfiguration.AccessLogConfiguration

java.lang.Object
org.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.valves.ValveBase
org.apache.catalina.valves.AbstractAccessLogValve
org.apache.catalina.valves.AccessLogValve
org.apache.catalina.valves.ExtendedAccessLogValve
io.micronaut.servlet.tomcat.TomcatConfiguration.AccessLogConfiguration
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, MBeanRegistration, org.apache.catalina.AccessLog, org.apache.catalina.Contained, org.apache.catalina.JmxEnabled, org.apache.catalina.Lifecycle, org.apache.catalina.Valve
Enclosing class:
TomcatConfiguration

@ConfigurationProperties(value="access-log", excludes={"next","container"}) @Requires(property="micronaut.server.tomcat.access-log.enabled", value="true") public static class TomcatConfiguration.AccessLogConfiguration extends org.apache.catalina.valves.ExtendedAccessLogValve implements io.micronaut.core.util.Toggleable
The access log configuration.
Since:
4.8.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.catalina.valves.ExtendedAccessLogValve

    org.apache.catalina.valves.ExtendedAccessLogValve.CookieElement, org.apache.catalina.valves.ExtendedAccessLogValve.DateElement, org.apache.catalina.valves.ExtendedAccessLogValve.PatternTokenizer, org.apache.catalina.valves.ExtendedAccessLogValve.RequestAttributeElement, org.apache.catalina.valves.ExtendedAccessLogValve.RequestHeaderElement, org.apache.catalina.valves.ExtendedAccessLogValve.RequestParameterElement, org.apache.catalina.valves.ExtendedAccessLogValve.ResponseAllHeaderElement, org.apache.catalina.valves.ExtendedAccessLogValve.ResponseHeaderElement, org.apache.catalina.valves.ExtendedAccessLogValve.ServletContextElement, org.apache.catalina.valves.ExtendedAccessLogValve.SessionAttributeElement, org.apache.catalina.valves.ExtendedAccessLogValve.TimeElement

    Nested classes/interfaces inherited from class org.apache.catalina.valves.AbstractAccessLogValve

    org.apache.catalina.valves.AbstractAccessLogValve.AccessLogElement, org.apache.catalina.valves.AbstractAccessLogValve.ByteSentElement, org.apache.catalina.valves.AbstractAccessLogValve.CachedElement, org.apache.catalina.valves.AbstractAccessLogValve.ConnectionStatusElement, org.apache.catalina.valves.AbstractAccessLogValve.DateAndTimeElement, org.apache.catalina.valves.AbstractAccessLogValve.DateFormatCache, org.apache.catalina.valves.AbstractAccessLogValve.ElapsedTimeElement, org.apache.catalina.valves.AbstractAccessLogValve.FirstByteTimeElement, org.apache.catalina.valves.AbstractAccessLogValve.HeaderElement, org.apache.catalina.valves.AbstractAccessLogValve.HostElement, org.apache.catalina.valves.AbstractAccessLogValve.HttpStatusCodeElement, org.apache.catalina.valves.AbstractAccessLogValve.LocalAddrElement, org.apache.catalina.valves.AbstractAccessLogValve.LocalServerNameElement, org.apache.catalina.valves.AbstractAccessLogValve.LogicalUserNameElement, org.apache.catalina.valves.AbstractAccessLogValve.MethodElement, org.apache.catalina.valves.AbstractAccessLogValve.PortElement, org.apache.catalina.valves.AbstractAccessLogValve.ProtocolElement, org.apache.catalina.valves.AbstractAccessLogValve.QueryElement, org.apache.catalina.valves.AbstractAccessLogValve.RemoteAddrElement, org.apache.catalina.valves.AbstractAccessLogValve.RequestElement, org.apache.catalina.valves.AbstractAccessLogValve.RequestURIElement, org.apache.catalina.valves.AbstractAccessLogValve.SessionIdElement, org.apache.catalina.valves.AbstractAccessLogValve.StringElement, org.apache.catalina.valves.AbstractAccessLogValve.ThreadNameElement, org.apache.catalina.valves.AbstractAccessLogValve.UserElement

    Nested classes/interfaces inherited from interface org.apache.catalina.Lifecycle

    org.apache.catalina.Lifecycle.SingleUse
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from class org.apache.catalina.valves.AccessLogValve

    currentLogFile, encoding, fileDateFormat, fileDateFormatter, prefix, renameOnRotate, rotatable, suffix, writer

    Fields inherited from class org.apache.catalina.valves.AbstractAccessLogValve

    cachedElements, condition, conditionIf, enabled, locale, localeName, logElements, pattern, requestAttributesEnabled

    Fields inherited from class org.apache.catalina.valves.ValveBase

    asyncSupported, container, containerLog, next, sm

    Fields inherited from interface org.apache.catalina.AccessLog

    PROTOCOL_ATTRIBUTE, REMOTE_ADDR_ATTRIBUTE, REMOTE_HOST_ATTRIBUTE, SERVER_NAME_ATTRIBUTE, SERVER_PORT_ATTRIBUTE

    Fields inherited from interface org.apache.catalina.Lifecycle

    AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     

    Methods inherited from class org.apache.catalina.valves.ExtendedAccessLogValve

    createLogElements, getClientToServerElement, getLogElement, getProxyElement, getServerToClientElement, getServletRequestElement, getXParameterElement, open

    Methods inherited from class org.apache.catalina.valves.AccessLogValve

    backgroundProcess, getDirectory, getEncoding, getFileDateFormat, getMaxDays, getPrefix, getSuffix, isBuffered, isCheckExists, isRenameOnRotate, isRotatable, log, rotate, rotate, setBuffered, setCheckExists, setDirectory, setEncoding, setFileDateFormat, setMaxDays, setPrefix, setRenameOnRotate, setRotatable, setSuffix, startInternal, stopInternal

    Methods inherited from class org.apache.catalina.valves.AbstractAccessLogValve

    createAccessLogElement, createAccessLogElement, escapeAndAppend, findLocale, getCondition, getConditionIf, getConditionUnless, getEnabled, getIpv6Canonical, getLocale, getMaxLogMessageBufferSize, getPattern, getRequestAttributesEnabled, invoke, log, setCondition, setConditionIf, setConditionUnless, setEnabled, setIpv6Canonical, setLocale, setMaxLogMessageBufferSize, setPattern, setRequestAttributesEnabled

    Methods inherited from class org.apache.catalina.valves.ValveBase

    getContainer, getDomainInternal, getNext, getObjectNameKeyProperties, initInternal, isAsyncSupported, setAsyncSupported, setContainer, setNext, toString

    Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase

    destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister, unregister

    Methods inherited from class org.apache.catalina.util.LifecycleBase

    addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • AccessLogConfiguration

      public AccessLogConfiguration()
  • Method Details

    • isEnabled

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