java.lang.Object | |
↳ | org.springframework.web.context.request.Log4jNestedDiagnosticContextInterceptor |
Request logging interceptor that adds a request context message to the Log4J nested diagnostic context (NDC) before the request is processed, removing it again after the request is processed.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
log4jLogger | Logger available to subclasses |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Removes the log message from the Log4J NDC after the request is processed.
| |||||||||||
Intercept the execution of a request handler after its successful
invocation, right before view rendering (if any).
| |||||||||||
Adds a message the Log4J NDC before the request is processed.
| |||||||||||
Set whether or not the session id and user name should be included
in the log message.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determine the message to be pushed onto the Log4J nested diagnostic context.
| |||||||||||
Return whether or not the session id and user name should be included
in the log message.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.web.context.request.WebRequestInterceptor
|
Logger available to subclasses
Removes the log message from the Log4J NDC after the request is processed.
request | the current web request |
---|---|
ex | exception thrown on handler execution, if any |
Exception |
---|
Intercept the execution of a request handler after its successful invocation, right before view rendering (if any).
Allows for modifying context resources after successful handler execution (for example, flushing a Hibernate Session).
request | the current web request |
---|---|
model | the map of model objects that will be exposed to the view
(may be null ). Can be used to analyze the exposed model
and/or to add further model attributes, if desired. |
Exception |
---|
Adds a message the Log4J NDC before the request is processed.
request | the current web request |
---|
Exception |
---|
Set whether or not the session id and user name should be included in the log message.
Determine the message to be pushed onto the Log4J nested diagnostic context.
Default is the request object's getDescription
result.
request | current HTTP request |
---|
Return whether or not the session id and user name should be included in the log message.