本文整理了Java中org.apache.log4j.Hierarchy.updateParents()
方法的一些代码示例,展示了Hierarchy.updateParents()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hierarchy.updateParents()
方法的具体详情如下:
包路径:org.apache.log4j.Hierarchy
类名称:Hierarchy
方法名:updateParents
[英]This method loops through all the potential parents of 'cat'. There 3 possible cases: 1) No entry for the potential parent of 'cat' exists We create a ProvisionNode for this potential parent and insert 'cat' in that provision node. 2) There entry is of type Logger for the potential parent. The entry is 'cat's nearest existing parent. We update cat's parent field with this entry. We also break from the loop because updating our parent's parent is our parent's responsibility. 3) There entry is of type ProvisionNode for this potential parent. We add 'cat' to the list of children for this potential parent.
[中]此方法循环遍历“cat”的所有潜在父对象。有3种可能的情况:1)不存在“cat”的潜在父项。我们为此潜在父项创建一个ProvisionNode,并在该provision node中插入“cat”。2) 潜在父项的类型为Logger。该条目是“cat”最近的现有父项。我们使用此条目更新cat的父字段。我们也打破了这个循环,因为更新我们父母的父母是我们父母的责任。3) 此潜在父项的类型为ProvisionNode。我们将“cat”添加到该潜在家长的子女列表中。
代码示例来源:origin: log4j/log4j
logger.setHierarchy(this);
ht.put(key, logger);
updateParents(logger);
return logger;
} else if(o instanceof Logger) {
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;
代码示例来源:origin: camunda/camunda-bpm-platform
logger.setHierarchy(this);
ht.put(key, logger);
updateParents(logger);
return logger;
} else if(o instanceof Logger) {
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;
代码示例来源:origin: apache/log4j
logger.setHierarchy(this);
ht.put(key, logger);
updateParents(logger);
return logger;
} else if(o instanceof Logger) {
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.log4j
logger.setHierarchy(this);
ht.put(key, logger);
updateParents(logger);
return logger;
} else if(o instanceof Logger) {
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;
代码示例来源:origin: org.apache/log4j
logger.setHierarchy(this);
ht.put(key, logger);
updateParents(logger);
return logger;
} else if(o instanceof Logger) {
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;
代码示例来源:origin: apache-log4j/log4j
logger.setHierarchy(this);
ht.put(key, logger);
updateParents(logger);
return logger;
} else if(o instanceof Logger) {
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;
代码示例来源:origin: org.apache.activemq/activemq-all
logger.setHierarchy(this);
ht.put(key, logger);
updateParents(logger);
return logger;
} else if(o instanceof Logger) {
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;
代码示例来源:origin: org.apache.log4j/com.springsource.org.apache.log4j
logger.setHierarchy(this);
ht.put(key, logger);
updateParents(logger);
return logger;
} else if(o instanceof Logger) {
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
logger.setHierarchy(this);
ht.put(key, logger);
updateParents(logger);
return logger;
} else if(o instanceof Logger) {
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;
内容来源于网络,如有侵权,请联系作者删除!