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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.filter.AbstractRequestLoggingFilter
| |||||||||||
From class
org.springframework.web.filter.OncePerRequestFilter
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
log4jLogger | Logger available to subclasses |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.filter.GenericFilterBean
|
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.filter.AbstractRequestLoggingFilter
| |||||||||||
From class
org.springframework.web.filter.OncePerRequestFilter
| |||||||||||
From class
org.springframework.web.filter.GenericFilterBean
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
javax.servlet.Filter
| |||||||||||
From interface
org.springframework.beans.factory.BeanNameAware
| |||||||||||
From interface
org.springframework.beans.factory.DisposableBean
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface
org.springframework.context.EnvironmentAware
| |||||||||||
From interface
org.springframework.web.context.ServletContextAware
|
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 |
---|