Class MDCAdapters
- java.lang.Object
-
- hu.icellmobilsoft.coffee.se.logging.mdc.MDCAdapters
-
public class MDCAdapters extends Object
Utility class for finding available MDC adapters- Since:
- 1.1.0
- Author:
- mark.petrenyi
-
-
Constructor Summary
Constructors Constructor Description MDCAdapters()Default constructor, constructs a new object.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MDCAdapterfindAdapter()Finds available MDC Adapter.
-
-
-
Method Detail
-
findAdapter
public static MDCAdapter findAdapter()
Finds available MDC Adapter. First tried via service loader, if not found one of the deafult adapters is returned tried in the following order:JbossMDCAdapter- for usingorg.jboss.logging.MDCSlf4jMDCAdapter- for usingorg.slf4j.MDCCoffeeMDCAdapter- fallback MDC, uses aThreadLocal
- Returns:
- An instance of
MDCAdapter
-
-