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

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

Introduction

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

Prototype

public void setIncludePayload(boolean includePayload) 

Source Link

Document

Set whether the request payload (body) 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);/*  www . jav a 2 s. c  o m*/
    crlf.setIncludeQueryString(true);
    crlf.setIncludePayload(true);
    return crlf;
}