classAccessLoggingFilter[R <: Request] extends SimpleFilter[R, Response] with Logging
Provides a standard "Access Log" -- a list of all requests through this Filter. Typically, this
Filter is provided by the com.twitter.finatra.http.modules.AccessLogModule which provides an
implementation for the LogFormatter param as an instance of
com.twitter.finagle.http.filter.CommonLogFormatter.
Usage: To use, configure a logger (with your preferred logging implementation) over this class
that writes to a specific file (usually named, access.log).
R
- "Request" type param which must be a subtype of com.twitter.finagle.http.Request.
This Filter should occur as early in the Filter chain as possible such that it is
"above" the ExceptionMappingFilter as it is expected that servicing requests with this
Filter will always return a com.twitter.finagle.http.Response.
Provides a standard "Access Log" -- a list of all requests through this Filter. Typically, this Filter is provided by the com.twitter.finatra.http.modules.AccessLogModule which provides an implementation for the LogFormatter param as an instance of com.twitter.finagle.http.filter.CommonLogFormatter.
Usage: To use, configure a logger (with your preferred logging implementation) over this class that writes to a specific file (usually named,
access.log
).- "Request" type param which must be a subtype of com.twitter.finagle.http.Request.
This Filter is included in the Finatra com.twitter.finatra.http.filters.CommonFilters.
,This Filter should occur as early in the Filter chain as possible such that it is "above" the ExceptionMappingFilter as it is expected that servicing requests with this Filter will always return a com.twitter.finagle.http.Response.
com.twitter.finagle.http.filter.CommonLogFormatter
com.twitter.finagle.filter.LogFormatter
com.twitter.finatra.http.modules.AccessLogModule
com.twitter.finatra.http.filters.ExceptionMappingFilter
com.twitter.finatra.http.filters.CommonFilters