Package icu.easyj.core.trace.impls
Class MDCTraceServiceImpl
java.lang.Object
icu.easyj.core.trace.impls.MDCTraceServiceImpl
- All Implemented Interfaces:
TraceService
@LoadLevel(name="MDC",
order=1)
@DependsOnClass(org.slf4j.MDC.class)
public class MDCTraceServiceImpl
extends Object
implements TraceService
基于
MDC 的追踪服务。用于记录日志。- Author:
- wangliang181230
-
Constructor Details
-
MDCTraceServiceImpl
public MDCTraceServiceImpl()
-
-
Method Details
-
put
Description copied from interface:TraceService设置追踪内容- Specified by:
putin interfaceTraceService- Parameters:
key- 键value- 值
-
remove
Description copied from interface:TraceService移除追踪内容- Specified by:
removein interfaceTraceService- Parameters:
key- 键
-
clear
public void clear()Description copied from interface:TraceService清空追踪内容- Specified by:
clearin interfaceTraceService
-