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

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

Introduction

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

Prototype

public void setIncludeQueryString(boolean includeQueryString) 

Source Link

Document

Set whether the query string 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);/*from  w  ww.j a va2s .  co  m*/
    crlf.setIncludeQueryString(true);
    crlf.setIncludePayload(true);
    return crlf;
}