dangsn
2024-06-06 33321f5486fd586fda6fd3f46b7e71754fede28b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.vci.starter.common.log.autoconfigure;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
/**
 * 日志自动读取的配置
 * @author weidy
 * @date 2020/4/14
 */
@Configuration
@ConfigurationProperties(prefix = "logging")
public class VciAutoLogConfigure {
 
    /**
     * 是否自动记录调用日志
     */
    private boolean showLog = false;
 
    /**
     * 自动记录的日志的级别,只能是Info或者debug
     */
    private String vciLogLevel = "info";
 
    public boolean isShowLog() {
        return showLog;
    }
 
    public void setShowLog(boolean showLog) {
        this.showLog = showLog;
    }
 
    public String getVciLogLevel() {
        return vciLogLevel;
    }
 
    public void setVciLogLevel(String vciLogLevel) {
        this.vciLogLevel = vciLogLevel;
    }
 
    @Override
    public String toString() {
        return "VciAutoLogConfigure{" +
                "showLog=" + showLog +
                ", vciLogLevel='" + vciLogLevel + '\'' +
                '}';
    }
}