Java 类org.springframework.web.filter.CommonsRequestLoggingFilter 实例源码

项目:syndesis-verifier    文件:Application.java   
/**
 * 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;
}
项目:spring-cloud-ribbon-extensions    文件:HttpLoggingConfig.java   
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;
}
项目:spring-cloud-ribbon-extensions    文件:HttpLoggingConfig.java   
@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();
}
项目:syndesis    文件:Application.java   
/**
 * 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;
}
项目:biblebot    文件:JerseyConfig.java   
@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;
}
项目:whatsmars    文件:AppConfig.java   
@Bean
public FilterRegistrationBean commonsRequestLoggingFilter() {
    FilterRegistrationBean registration = new FilterRegistrationBean();
    registration.setName("requestLoggingFilter");
    registration.setDispatcherTypes(DispatcherType.REQUEST);
    registration.setFilter(new CommonsRequestLoggingFilter());
    registration.addUrlPatterns("/**");
    registration.setOrder(Integer.MAX_VALUE);
    return registration;
}
项目:conciliator    文件:Application.java   
/**
 * 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;
}
项目:dawg    文件:WebMvcConfig.java   
@Bean
public Filter logFilter() {
    CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter();
    filter.setIncludeClientInfo(true);
    filter.setIncludeQueryString(true);
    filter.setIncludePayload(true);
    filter.setMaxPayloadLength(5120);
    return new ExclusionFilter(filter, "/resources/.*", "/health/?.*");
}
项目:dawg    文件:WebMvcConfig.java   
@Bean
public Filter logFilter() {
    CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter();
    filter.setIncludeClientInfo(true);
    filter.setIncludeQueryString(true);
    filter.setIncludePayload(true);
    filter.setMaxPayloadLength(5120);
    return new ExclusionFilter(filter, "/resources/.*", "/health/?.*");
}
项目:dawg    文件:WebMvcConfig.java   
@Bean
public Filter logFilter() {
    CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter();
    filter.setIncludeClientInfo(true);
    filter.setIncludeQueryString(true);
    filter.setIncludePayload(true);
    filter.setMaxPayloadLength(5120);
    return new ExclusionFilter(filter, "/(resources|images|js|css|public)/.*", "/health/?.*");
}
项目:blog-microservices    文件:ZuulApplication.java   
@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;
}
项目:ws-loadbalancer    文件:MyWebAppInitializer.java   
private void addLoggingFilter(ServletContext container) {
    FilterRegistration.Dynamic fr = container.addFilter("loggingFilter", new CommonsRequestLoggingFilter());
    fr.addMappingForUrlPatterns(null, true, "/*");
}
项目:spring-rest-server    文件:MyWebAppInitializer.java   
private void addLoggingFilter(ServletContext container) {
    FilterRegistration.Dynamic fr = container.addFilter("loggingFilter", new CommonsRequestLoggingFilter());
    fr.addMappingForUrlPatterns(null, true, "/*");
}