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

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

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

LogFactory.logHierarchy介绍

[英]Logs diagnostic messages about the given classloader and it's hierarchy. The prefix is prepended to the message and is intended to make it easier to understand the logs.
[中]记录有关给定类加载器及其层次结构的诊断消息。前缀在消息前面,旨在使日志更容易理解。

代码示例

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

logDiagnostic("[CUSTOM LOG FACTORY] was loaded by the boot classloader");
} else {
  logHierarchy("[CUSTOM LOG FACTORY] ", logFactoryClassLoader);
  Class factoryFromCustomLoader
    = Class.forName("org.apache.commons.logging.LogFactory", false, logFactoryClassLoader);

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

" does not extend '" + LogFactory.class.getName() +
       "' as loaded by this classloader.");
logHierarchy("[BAD CL TREE] ", classLoader);

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

logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);

代码示例来源:origin: robovm/robovm

logDiagnostic("[CUSTOM LOG FACTORY] was loaded by the boot classloader");
} else {
  logHierarchy("[CUSTOM LOG FACTORY] ", logFactoryClassLoader);
  Class factoryFromCustomLoader
    = Class.forName("org.apache.commons.logging.LogFactory", false, logFactoryClassLoader);

代码示例来源:origin: robovm/robovm

"[ENV] Class " + className + " was loaded via classloader "
  + objectId(classLoader));
logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);

代码示例来源:origin: robovm/robovm

+ " does not extend '" + LogFactory.class.getName()
  + "' as loaded by this classloader.");
logHierarchy("[BAD CL TREE] ", classLoader);

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

"[LOOKUP] LogFactory implementation requested for the first time for context classloader " +
    objectId(contextClassLoader));
logHierarchy("[LOOKUP] ", contextClassLoader);

代码示例来源:origin: robovm/robovm

"[LOOKUP] LogFactory implementation requested for the first time for context classloader "
    + objectId(contextClassLoader));
logHierarchy("[LOOKUP] ", contextClassLoader);

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

logDiagnostic("[CUSTOM LOG FACTORY] was loaded by the boot classloader");
} else {
  logHierarchy("[CUSTOM LOG FACTORY] ", logFactoryClassLoader);
  Class factoryFromCustomLoader
    = Class.forName("org.apache.commons.logging.LogFactory", false, logFactoryClassLoader);

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

"[ENV] Class " + className + " was loaded via classloader "
  + objectId(classLoader));
logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);

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

+ " does not extend '" + LogFactory.class.getName()
  + "' as loaded by this classloader.");
logHierarchy("[BAD CL TREE] ", classLoader);

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

"[LOOKUP] LogFactory implementation requested for the first time for context classloader "
    + objectId(contextClassLoader));
logHierarchy("[LOOKUP] ", contextClassLoader);

代码示例来源:origin: ibinti/bugvm

"[ENV] Class " + className + " was loaded via classloader "
  + objectId(classLoader));
logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);

代码示例来源:origin: org.apache.openjpa/openjpa-all

logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);

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

"[ENV] Class " + className + " was loaded via classloader "
  + objectId(classLoader));
logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);

代码示例来源:origin: MobiVM/robovm

"[ENV] Class " + className + " was loaded via classloader "
  + objectId(classLoader));
logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);

代码示例来源:origin: com.gluonhq/robovm-rt

"[ENV] Class " + className + " was loaded via classloader "
  + objectId(classLoader));
logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

"[ENV] Class " + className + " was loaded via classloader "
  + objectId(classLoader));
logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);

代码示例来源:origin: com.bugvm/bugvm-rt

"[ENV] Class " + className + " was loaded via classloader "
  + objectId(classLoader));
logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);

相关文章