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

The following examples show how to use org.springframework.web.filter.CommonsRequestLoggingFilter#setIncludeQueryString() . 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: HttpLoggingConfig.java    From spring-cloud-ribbon-extensions with Apache License 2.0 5 votes vote down vote up
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
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;
}
 
Example 3
Source File: RequestLoggingFilterConfig.java    From code-examples with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter logFilter() {
  CommonsRequestLoggingFilter filter
          = new CommonsRequestLoggingFilter();
  filter.setIncludeHeaders(true);
  filter.setIncludeQueryString(true);
  filter.setIncludePayload(true);
  filter.setMaxPayloadLength(10000);
  return filter;
}
 
Example 4
Source File: RequestLoggingFilterConfig.java    From code-examples with MIT License 5 votes vote down vote up
@Bean
public CommonsRequestLoggingFilter logFilter() {
  CommonsRequestLoggingFilter filter
          = new CommonsRequestLoggingFilter();
  filter.setIncludeHeaders(true);
  filter.setIncludeQueryString(true);
  filter.setIncludePayload(true);
  filter.setMaxPayloadLength(10000);
  return filter;
}
 
Example 5
Source File: OpenLRW.java    From OpenLRW with Educational Community License v2.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.setMaxPayloadLength(50000);
    return loggingFilter;
}
 
Example 6
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 7
Source File: ZuulApplication.java    From blog-microservices with Apache License 2.0 5 votes vote down vote up
@Bean
public Filter logFilter() {
    // TODO: Extract bean-def to Util-component!
    CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter();
    filter.setIncludeQueryString(true);
    filter.setIncludePayload(true);
    filter.setMaxPayloadLength(5120);
    return filter;
}
 
Example 8
Source File: RequestLoggingFilterConfig.java    From bswen-project with Apache License 2.0 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(true);
    filter.setAfterMessagePrefix("REQUEST DATA : ");
    return filter;
}
 
Example 9
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 10
Source File: LoggingConfig.java    From metron with Apache License 2.0 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(true);
  filter.setAfterMessagePrefix("request: ");
  filter.setAfterMessageSuffix("");
  return filter;
}
 
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;
}