@Configuration
@ConditionalOnProperty(value="spring.sleuth.enabled",
matchIfMissing=true)
public class SleuthLogAutoConfiguration
extends Object
Auto-configuration
enables a Slf4jSpanLogger that prints tracing information in the logs.
Note: this is only available for Slf4j
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SleuthLogAutoConfiguration.Slf4jConfiguration |
| Constructor and Description |
|---|
SleuthLogAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
SpanLogger |
defaultLoggedSpansHandler() |
@Bean @ConditionalOnMissingClass(value="org.slf4j.MDC") @ConditionalOnMissingBean public SpanLogger defaultLoggedSpansHandler()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.