java.lang.Object | ||||
↳ | org.springframework.web.filter.GenericFilterBean | |||
↳ | org.springframework.web.filter.OncePerRequestFilter | |||
↳ | org.springframework.web.filter.AbstractRequestLoggingFilter | |||
↳ | org.springframework.web.filter.Log4jNestedDiagnosticContextFilter |
Request logging filter that adds the request log message to the Log4J nested diagnostic context (NDC) before the request is processed, removing it again after the request is processed.
setIncludeQueryString(boolean)
setBeforeMessagePrefix(String)
setBeforeMessageSuffix(String)
setAfterMessagePrefix(String)
setAfterMessageSuffix(String)
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
log4jLogger | Logger available to subclasses |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Removes the log message from the Log4J NDC after the request is processed
and logs the after-request message through Log4J.
| |||||||||||
Logs the before-request message through Log4J and
adds a message the Log4J NDC before the request is processed.
| |||||||||||
Determine the message to be pushed onto the Log4J nested diagnostic context.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Logger available to subclasses
Removes the log message from the Log4J NDC after the request is processed and logs the after-request message through Log4J.
request | current HTTP request |
---|---|
message | the message to log |
Logs the before-request message through Log4J and adds a message the Log4J NDC before the request is processed.
request | current HTTP request |
---|---|
message | the message to log |
Determine the message to be pushed onto the Log4J nested diagnostic context.
Default is a plain request log message without prefix or suffix.
request | current HTTP request |
---|