org.apache.commons.logging.LogFactory.logRawDiagnostic()方法的使用及代码示例

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

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

LogFactory.logRawDiagnostic介绍

[英]Write the specified message to the internal logging destination.
[中]将指定的消息写入内部日志记录目标。

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Output a diagnostic message to a user-specified destination (if the
 * user has enabled diagnostic logging).
 * 
 * @param msg diagnostic message
 * @since 1.1
 */
protected void logDiagnostic(String msg) {
  if (isDiagnosticsEnabled()) {
    logRawDiagnostic(diagnosticPrefix + msg);
  }
}

代码示例来源:origin: Nextdoor/bender

/**
 * Output a diagnostic message to a user-specified destination (if the
 * user has enabled diagnostic logging).
 *
 * @param msg diagnostic message
 * @since 1.1
 */
protected void logDiagnostic(String msg) {
  if (isDiagnosticsEnabled()) {
    logRawDiagnostic(diagnosticPrefix + msg);
  }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.logging

/**
 * Output a diagnostic message to a user-specified destination (if the
 * user has enabled diagnostic logging).
 * 
 * @param msg diagnostic message
 * @since 1.1
 */
protected void logDiagnostic(String msg) {
  if (isDiagnosticsEnabled()) {
    logRawDiagnostic(diagnosticPrefix + msg);
  }
}

代码示例来源:origin: apache-logging/commons-logging

/**
 * Output a diagnostic message to a user-specified destination (if the
 * user has enabled diagnostic logging).
 * 
 * @param msg diagnostic message
 * @since 1.1
 */
protected void logDiagnostic(String msg) {
  if (isDiagnosticsEnabled()) {
    logRawDiagnostic(diagnosticPrefix + msg);
  }
}

代码示例来源:origin: apache-logging/commons-logging

/**
 * Generates an internal diagnostic logging of the discovery failure and 
 * then throws a <code>LogConfigurationException</code> that wraps 
 * the passed <code>Throwable</code>.
 * 
 * @param logAdapterClassName is the class name of the Log implementation
 * that could not be instantiated. Cannot be <code>null</code>.
 * 
 * @param classLoader is the classloader that we were trying to load the
 * logAdapterClassName from when the exception occurred.
 * 
 * @param discoveryFlaw is the Throwable created by the classloader
 * 
 * @throws LogConfigurationException    ALWAYS
 */
private void handleFlawedDiscovery(String logAdapterClassName,
                  ClassLoader classLoader,
                  Throwable discoveryFlaw) {
  
  if (isDiagnosticsEnabled()) {
    logRawDiagnostic("Could not instantiate Log '"
         + logAdapterClassName + "' -- "
         + discoveryFlaw.getClass().getName() + ": "
         + discoveryFlaw.getLocalizedMessage(), discoveryFlaw);
  }
  if (!allowFlawedDiscovery) {
    throw new LogConfigurationException(discoveryFlaw);
  }
}

相关文章