增加分布式日志链路追踪
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
package com.central.log.config;
|
||||
|
||||
import com.central.log.properties.TraceProperties;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
|
||||
/**
|
||||
* 日志自动配置
|
||||
*
|
||||
* @author zlt
|
||||
* @date 2019/8/13
|
||||
*/
|
||||
@EnableConfigurationProperties(TraceProperties.class)
|
||||
public class LogAutoConfigure {
|
||||
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.central.log.properties;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
|
||||
/**
|
||||
* 日志链路追踪配置
|
||||
*
|
||||
* @author zlt
|
||||
* @date 2019/8/13
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@ConfigurationProperties(prefix = "zlt.trace")
|
||||
@RefreshScope
|
||||
public class TraceProperties {
|
||||
/**
|
||||
* 是否开启日志链路追踪
|
||||
*/
|
||||
private Boolean enable = false;
|
||||
}
|
||||
Reference in New Issue
Block a user