当前位置: 首页>>代码示例>>Java>>正文


Java CommonsRequestLoggingFilter类代码示例

本文整理汇总了Java中org.springframework.web.filter.CommonsRequestLoggingFilter的典型用法代码示例。如果您正苦于以下问题:Java CommonsRequestLoggingFilter类的具体用法?Java CommonsRequestLoggingFilter怎么用?Java CommonsRequestLoggingFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CommonsRequestLoggingFilter类属于org.springframework.web.filter包,在下文中一共展示了CommonsRequestLoggingFilter类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: requestLoggingFilter

import org.springframework.web.filter.CommonsRequestLoggingFilter; //导入依赖的package包/类
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;
}
 
开发者ID:enadim,项目名称:spring-cloud-ribbon-extensions,代码行数:9,代码来源:HttpLoggingConfig.java

示例2: requestLoggingFilter

import org.springframework.web.filter.CommonsRequestLoggingFilter; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:syndesisio,项目名称:syndesis-verifier,代码行数:12,代码来源:Application.java

示例3: springLogging

import org.springframework.web.filter.CommonsRequestLoggingFilter; //导入依赖的package包/类
@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();
}
 
开发者ID:enadim,项目名称:spring-cloud-ribbon-extensions,代码行数:9,代码来源:HttpLoggingConfig.java

示例4: logFilter

import org.springframework.web.filter.CommonsRequestLoggingFilter; //导入依赖的package包/类
@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;
}
 
开发者ID:sscholl,项目名称:biblebot,代码行数:12,代码来源:JerseyConfig.java

示例5: commonsRequestLoggingFilter

import org.springframework.web.filter.CommonsRequestLoggingFilter; //导入依赖的package包/类
@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;
}
 
开发者ID:javahongxi,项目名称:whatsmars,代码行数:11,代码来源:AppConfig.java

示例6: logFilter

import org.springframework.web.filter.CommonsRequestLoggingFilter; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:codeforkjeff,项目名称:conciliator,代码行数:17,代码来源:Application.java

示例7: logFilter

import org.springframework.web.filter.CommonsRequestLoggingFilter; //导入依赖的package包/类
@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/?.*");
}
 
开发者ID:Comcast,项目名称:dawg,代码行数:10,代码来源:WebMvcConfig.java

示例8: logFilter

import org.springframework.web.filter.CommonsRequestLoggingFilter; //导入依赖的package包/类
@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/?.*");
}
 
开发者ID:Comcast,项目名称:dawg,代码行数:10,代码来源:WebMvcConfig.java

示例9: logFilter

import org.springframework.web.filter.CommonsRequestLoggingFilter; //导入依赖的package包/类
@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;
}
 
开发者ID:callistaenterprise,项目名称:blog-microservices,代码行数:10,代码来源:ZuulApplication.java

示例10: addLoggingFilter

import org.springframework.web.filter.CommonsRequestLoggingFilter; //导入依赖的package包/类
private void addLoggingFilter(ServletContext container) {
    FilterRegistration.Dynamic fr = container.addFilter("loggingFilter", new CommonsRequestLoggingFilter());
    fr.addMappingForUrlPatterns(null, true, "/*");
}
 
开发者ID:jensalm,项目名称:ws-loadbalancer,代码行数:5,代码来源:MyWebAppInitializer.java


注:本文中的org.springframework.web.filter.CommonsRequestLoggingFilter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。