| |
|
| java.lang.Object org.springframework.web.context.request.Log4jNestedDiagnosticContextInterceptor
Log4jNestedDiagnosticContextInterceptor | public class Log4jNestedDiagnosticContextInterceptor implements WebRequestInterceptor(Code) | | 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.
author: Juergen Hoeller since: 2.5 See Also: org.apache.log4j.NDC.push(String) See Also: org.apache.log4j.NDC.pop |
log4jLogger | final protected Logger log4jLogger(Code) | | Logger available to subclasses
|
afterCompletion | public void afterCompletion(WebRequest request, Exception ex) throws Exception(Code) | | Removes the log message from the Log4J NDC after the request is processed.
|
isIncludeClientInfo | protected boolean isIncludeClientInfo()(Code) | | Return whether or not the session id and user name should be included
in the log message.
|
preHandle | public void preHandle(WebRequest request) throws Exception(Code) | | Adds a message the Log4J NDC before the request is processed.
|
setIncludeClientInfo | public void setIncludeClientInfo(boolean includeClientInfo)(Code) | | Set whether or not the session id and user name should be included
in the log message.
|
|
|
|