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 + '\'' + '}'; } }