org.slf4j.LoggerFactory.emitSubstituteLoggerWarning()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中org.slf4j.LoggerFactory.emitSubstituteLoggerWarning()方法的一些代码示例,展示了LoggerFactory.emitSubstituteLoggerWarning()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LoggerFactory.emitSubstituteLoggerWarning()方法的具体详情如下:
包路径:org.slf4j.LoggerFactory
类名称:LoggerFactory
方法名:emitSubstituteLoggerWarning

LoggerFactory.emitSubstituteLoggerWarning介绍

暂无

代码示例

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

private final static void bind() {
 try {
  // the next line does the binding
  getSingleton();
  INITIALIZATION_STATE = SUCCESSFUL_INITILIZATION;
  emitSubstituteLoggerWarning();
 } catch (NoClassDefFoundError ncde) {
  INITIALIZATION_STATE = FAILED_INITILIZATION;
  String msg = ncde.getMessage();
  if (msg != null && msg.indexOf("org/slf4j/impl/StaticLoggerBinder") != -1) {
   Util
     .reportFailure("Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".");
   Util.reportFailure("See " + NO_STATICLOGGERBINDER_URL
     + " for further details.");
  }
  throw ncde;
 } catch (Exception e) {
  INITIALIZATION_STATE = FAILED_INITILIZATION;
  // we should never get here
  Util.reportFailure("Failed to instantiate logger ["
    + getSingleton().getLoggerFactoryClassStr() + "]", e);
 }
}

代码示例来源:origin: wolpi/prim-ftpd

emitSubstituteLoggerWarning();
} catch (NoClassDefFoundError ncde) {
 String msg = ncde.getMessage();

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

INITIALIZATION_STATE = SUCCESSFUL_INITIALIZATION;
 reportActualBinding(staticLoggerBinderPathSet);
 emitSubstituteLoggerWarning();
} catch (NoClassDefFoundError ncde) {
 String msg = ncde.getMessage();

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.slf4j.api

INITIALIZATION_STATE = SUCCESSFUL_INITIALIZATION;
 reportActualBinding(staticLoggerBinderPathSet);
 emitSubstituteLoggerWarning();
} catch (NoClassDefFoundError ncde) {
 String msg = ncde.getMessage();

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

INITIALIZATION_STATE = SUCCESSFUL_INITIALIZATION;
 reportActualBinding(staticLoggerBinderPathSet);
 emitSubstituteLoggerWarning();
} catch (NoClassDefFoundError ncde) {
 String msg = ncde.getMessage();

相关文章