Java Code Examples for org.springframework.web.filter.CommonsRequestLoggingFilter#setIncludeHeaders()

The following examples show how to use org.springframework.web.filter.CommonsRequestLoggingFilter#setIncludeHeaders() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ProductApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 2
Source File: OrderApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
	public CommonsRequestLoggingFilter requestLoggingFilter() {
	    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
//	    loggingFilter.setIncludeClientInfo(true);
//	    loggingFilter.setIncludeQueryString(true);
	    loggingFilter.setIncludePayload(true);
	    loggingFilter.setIncludeHeaders(true);
	    loggingFilter.setMaxPayloadLength(1000);
	    loggingFilter.setAfterMessagePrefix("REQ:");
	    return loggingFilter;
	}
 
Example 3
Source File: OrderApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 4
Source File: OrderApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
	public CommonsRequestLoggingFilter requestLoggingFilter() {
	    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
//	    loggingFilter.setIncludeClientInfo(true);
//	    loggingFilter.setIncludeQueryString(true);
	    loggingFilter.setIncludePayload(true);
	    loggingFilter.setIncludeHeaders(true);
	    loggingFilter.setMaxPayloadLength(1000);
	    loggingFilter.setAfterMessagePrefix("REQ:");
	    return loggingFilter;
	}
 
Example 5
Source File: ProductApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 6
Source File: CustomerApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 7
Source File: OrderApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 8
Source File: WebConfig.java    From POC with Apache License 2.0 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
	CommonsRequestLoggingFilter crlf = new CommonsRequestLoggingFilter();
	crlf.setIncludeClientInfo(true);
	crlf.setIncludeQueryString(true);
	crlf.setIncludePayload(true);
	crlf.setIncludeHeaders(true);
	return crlf;
}
 
Example 9
Source File: CustomerApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 10
Source File: OrderApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 11
Source File: RequestLoggingFilterConfig.java    From tutorials with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter logFilter() {
    CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter();
    filter.setIncludeQueryString(true);
    filter.setIncludePayload(true);
    filter.setMaxPayloadLength(10000);
    filter.setIncludeHeaders(false);
    filter.setAfterMessagePrefix("REQUEST DATA : ");
    return filter;
}
 
Example 12
Source File: AccountApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 13
Source File: OrderApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 14
Source File: Application.java    From conciliator with GNU General Public License v3.0 5 votes vote down vote up
/**
 * set property logging.level.org.springframework.web.filter=DEBUG
 * for logging output
 * @return
 */
@Bean
public CommonsRequestLoggingFilter logFilter() {
    CommonsRequestLoggingFilter filter
            = new CommonsRequestLoggingFilter();
    filter.setIncludeQueryString(true);
    filter.setIncludePayload(true);
    filter.setMaxPayloadLength(10000);
    filter.setIncludeHeaders(false);
    filter.setAfterMessagePrefix("REQUEST DATA : ");
    return filter;
}
 
Example 15
Source File: CustomerApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 16
Source File: OrderApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 17
Source File: CustomerApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 18
Source File: ProductApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 19
Source File: ProductApplication.java    From Mastering-Spring-Cloud with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    loggingFilter.setMaxPayloadLength(1000);
    loggingFilter.setAfterMessagePrefix("REQ:");
    return loggingFilter;
}
 
Example 20
Source File: WebConfig.java    From teiid-spring-boot with Apache License 2.0 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludeClientInfo(true);
    loggingFilter.setIncludeQueryString(true);
    loggingFilter.setIncludePayload(true);
    loggingFilter.setIncludeHeaders(true);
    return loggingFilter;
}