/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }
public static final StaticMDCBinder SINGLETON = new StaticMDCBinder();
/** * 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(); } }
public static final StaticMDCBinder SINGLETON = new StaticMDCBinder();
/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }
/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }
/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }
/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }
/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }
/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }
/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }
/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }
/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }
/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }
/** * As of SLF4J version 1.7.14, StaticMDCBinder classes shipping in various bindings * come with a getSingleton() method. Previously only a public field called SINGLETON * was available. * * @return MDCAdapter * @throws NoClassDefFoundError in case no binding is available * @since 1.7.14 */ private static MDCAdapter bwCompatibleGetMDCAdapterFromBinder() throws NoClassDefFoundError { try { return StaticMDCBinder.getSingleton().getMDCA(); } catch (NoSuchMethodError nsme) { // binding is probably a version of SLF4J older than 1.7.14 return StaticMDCBinder.SINGLETON.getMDCA(); } }