Example usage for org.springframework.web.filter CommonsRequestLoggingFilter setIncludeClientInfo

List of usage examples for org.springframework.web.filter CommonsRequestLoggingFilter setIncludeClientInfo

Introduction

In this page you can find the example usage for org.springframework.web.filter CommonsRequestLoggingFilter setIncludeClientInfo.

Prototype

public void setIncludeClientInfo(boolean includeClientInfo) 

Source Link

Document

Set whether the client address and session id should be included in the log message.

Usage

From source file:com.sothawo.taboo2.Taboo2Application.java

@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter crlf = new CommonsRequestLoggingFilter();
    crlf.setIncludeClientInfo(true);
    crlf.setIncludeQueryString(true);// w  w  w.j  a  v  a  2 s .  c o  m
    crlf.setIncludePayload(true);
    return crlf;
}