org.slf4j.helpers.NOPMDCAdapter Java Examples
The following examples show how to use
org.slf4j.helpers.NOPMDCAdapter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StaticMDCBinder.java From HttpSessionReplacer with MIT License | 5 votes |
/** * Currently this method always returns an instance of * {@link StaticMDCBinder}. * @return */ public MDCAdapter getMDCA() { try { return (MDCAdapter) Class.forName(getMDCAdapterClassStr()).newInstance(); } catch (Exception e) { // NOSONAR we can't log here as we are actually instantiating log here System.err.println("Unable to instantiate mdc adapter " + getMDCAdapterClassStr()); // NOSONAR e.printStackTrace(); // NOSONAR return new NOPMDCAdapter(); } }
Example #2
Source File: StaticMDCBinder.java From xltsearch with Apache License 2.0 | 4 votes |
public String getMDCAdapterClassStr() { return NOPMDCAdapter.class.getName(); }
Example #3
Source File: DefaultLoggerServiceProvider.java From core-ng-project with Apache License 2.0 | 4 votes |
@Override public void initialize() { loggerFactory = new DefaultLoggerFactory(); markerFactory = new BasicMarkerFactory(); mdcAdapter = new NOPMDCAdapter(); }
Example #4
Source File: StaticMDCBinder.java From joynr with Apache License 2.0 | 4 votes |
public String getMDCAdapterClassStr() { return NOPMDCAdapter.class.getName(); }
Example #5
Source File: StaticMDCBinder.java From xltsearch with Apache License 2.0 | 2 votes |
/** * Currently this method always returns an instance of * {@link StaticMDCBinder}. */ public MDCAdapter getMDCA() { return new NOPMDCAdapter(); }
Example #6
Source File: StaticMDCBinder.java From joynr with Apache License 2.0 | 2 votes |
/** * Currently this method always returns an instance of * {@link StaticMDCBinder}. */ public MDCAdapter getMDCA() { return new NOPMDCAdapter(); }