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

      public void put(String key, String value)
      Description copied from interface: TraceService
      设置追踪内容
      Specified by:
      put in interface TraceService
      Parameters:
      key - 键
      value - 值
    • remove

      public void remove(String key)
      Description copied from interface: TraceService
      移除追踪内容
      Specified by:
      remove in interface TraceService
      Parameters:
      key - 键
    • clear

      public void clear()
      Description copied from interface: TraceService
      清空追踪内容
      Specified by:
      clear in interface TraceService