Closed hengboy closed 4 years ago
在LoggingFactoryBean
构造函数内进行配置使用。
/**
* Examples of classes required for initialization of constructors
* {@link DefaultLogTraceIdGenerator}
* {@link DefaultLogSpanIdGenerator}
* {@link LoggingMemoryCache}
*/
public LoggingFactoryBean() {
this.traceGenerator = new MinBoxSequenceLogTraceIdGenerator();
this.spanGenerator = new MinBoxSequenceLogSpanIdGenerator();
this.loggingCache = new LoggingMemoryCache();
}
minbox-sequence:https://github.com/minbox-projects/minbox-sequence