@Configuration @ConditionalOnClass(value=org.slf4j.MDC.class) @EnableConfigurationProperties(value=SleuthSlf4jProperties.class) protected static class SleuthLogAutoConfiguration.Slf4jConfiguration extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Slf4jConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
SpanLogger |
noOpSlf4jSpanLogger() |
SpanLogger |
slf4jSpanLogger(SleuthSlf4jProperties sleuthSlf4jProperties) |
@Bean
@ConditionalOnProperty(value="spring.sleuth.log.slf4j.enabled",
matchIfMissing=true)
@ConditionalOnMissingBean
public SpanLogger slf4jSpanLogger(SleuthSlf4jProperties sleuthSlf4jProperties)
@Bean
@ConditionalOnProperty(value="spring.sleuth.log.slf4j.enabled",
havingValue="false")
@ConditionalOnMissingBean
public SpanLogger noOpSlf4jSpanLogger()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.