本文整理了Java中org.apache.commons.logging.LogFactory.logRawDiagnostic()
方法的一些代码示例,展示了LogFactory.logRawDiagnostic()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LogFactory.logRawDiagnostic()
方法的具体详情如下:
包路径:org.apache.commons.logging.LogFactory
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!