@LoadLevel(name="MDC", order=1) @DependsOnClass(value=org.slf4j.MDC.class) public class MDCTraceServiceImpl extends Object implements TraceService
MDC 的追踪服务。用于记录日志。| Constructor and Description |
|---|
MDCTraceServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTrace()
判断当前是否可以执行追踪
|
void |
clear()
清空追踪内容
|
void |
put(String key,
String value)
设置追踪内容
|
void |
remove(String key)
移除追踪内容
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitput, remove, removepublic boolean canTrace()
TraceServicecanTrace in interface TraceServicepublic void put(String key, String value)
TraceServiceput in interface TraceServicekey - 键value - 值public void remove(String key)
TraceServiceremove in interface TraceServicekey - 键public void clear()
TraceServiceclear in interface TraceServiceCopyright © 2021–2022 EasyJ????. All rights reserved.