All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.rexsheng.springboot.faster.system.log.adapter.LogConfig Maven / Gradle / Ivy

The newest version!
package com.github.rexsheng.springboot.faster.system.log.adapter;

import com.github.rexsheng.springboot.faster.logging.RequestLogFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

public class LogConfig {

    @Bean
    @ConditionalOnMissingBean
    public RequestLogFactory requestLogFactory(){
        RequestLogFactory factory=new RequestLogFactory();
//        factory.setIncludePatterns(new String[]{"/sys/**"});
        factory.setRequestHeaders(new String[]{"lang"});
//        factory.setExcludePatterns(new String[]{"/token"});
        return factory;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy