Java Code Examples for org.springframework.web.filter.CommonsRequestLoggingFilter

The following examples show how to use org.springframework.web.filter.CommonsRequestLoggingFilter. These examples are extracted from open source projects. 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
public CommonsRequestLoggingFilter requestLoggingFilter() {
    CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludeClientInfo(properties.client);
    loggingFilter.setIncludeQueryString(properties.query);
    loggingFilter.setIncludePayload(properties.payload);
    loggingFilter.setIncludeHeaders(properties.headers);
    return loggingFilter;
}
 
Example 2
@Bean
@ConditionalOnClass(Logger.class)
public CommonsRequestLoggingFilter springLogging() {
    Logger logger = (Logger) LoggerFactory.getLogger(CommonsRequestLoggingFilter.class);
    logger.setLevel(Level.DEBUG);
    log.info("Http logging enabled {}.", properties);
    return requestLoggingFilter();
}
 
Example 3
Source Project: syndesis   Source File: Application.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * A filter used capture the request body
 */
@Bean
public static Filter requestLoggingFilter() {
    final CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
    loggingFilter.setIncludePayload(true);
    loggingFilter.setMaxPayloadLength(512);

    return loggingFilter;
}
 
Example 4
Source Project: teiid-spring-boot   Source File: WebConfig.java    License: 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;
}
 
Example 5
Source Project: Mastering-Spring-Cloud   Source File: CustomerApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: ProductApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: OrderApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: AccountApplication.java    License: 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 9
Source Project: Mastering-Spring-Cloud   Source File: CustomerApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: ProductApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: OrderApplication.java    License: 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 12
Source Project: Mastering-Spring-Cloud   Source File: CustomerApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: ProductApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: OrderApplication.java    License: 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 15
Source Project: Mastering-Spring-Cloud   Source File: CustomerApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: ProductApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: OrderApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: CustomerApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: ProductApplication.java    License: 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 Project: Mastering-Spring-Cloud   Source File: OrderApplication.java    License: 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 21
Source Project: Mastering-Spring-Cloud   Source File: AccountApplication.java    License: 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 22
Source Project: Mastering-Spring-Cloud   Source File: CustomerApplication.java    License: 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 23
Source Project: Mastering-Spring-Cloud   Source File: ProductApplication.java    License: 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 24
Source Project: Mastering-Spring-Cloud   Source File: OrderApplication.java    License: 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 25
Source Project: Mastering-Spring-Cloud   Source File: AccountApplication.java    License: 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 26
Source Project: Mastering-Spring-Cloud   Source File: CustomerApplication.java    License: 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 27
Source Project: Mastering-Spring-Cloud   Source File: ProductApplication.java    License: 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 28
Source Project: Mastering-Spring-Cloud   Source File: OrderApplication.java    License: 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 29
Source Project: Mastering-Spring-Cloud   Source File: AccountApplication.java    License: 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 30
Source Project: Mastering-Spring-Cloud   Source File: CustomerApplication.java    License: 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;
}