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

cn.coufran.springboot.starter.log.logger.LoggerConfig Maven / Gradle / Ivy

The newest version!
package cn.coufran.springboot.starter.log.logger;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 日志记录相关配置
 * @author Coufran
 * @version 1.0.0
 * @since 1.0.0
 */
@Configuration
public class LoggerConfig {
    /**
     * 日志记录器
     * @return 日志记录器
     */
    @Bean
    @ConditionalOnMissingBean(Logger.class)
    public Logger slfLogger() {
        return new SlfLogger();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy