org.apache.log4j.Hierarchy.updateChildren()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(146)

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

Hierarchy.updateChildren介绍

[英]We update the links for all the children that placed themselves in the provision node 'pn'. The second argument 'cat' is a reference for the newly created Logger, parent of all the children in 'pn' We loop on all the children 'c' in 'pn': If the child 'c' has been already linked to a child of 'cat' then there is no need to update 'c'. Otherwise, we set cat's parent field to c's parent and set c's parent field to cat.
[中]我们更新将自己放置在供应节点“pn”中的所有子节点的链接。第二个参数“cat”是新创建的记录器的引用,它是“pn”中所有子项的父项,我们在“pn”中的所有子项“c”上循环:如果子项“c”已链接到“cat”的子项,则无需更新“c”。否则,我们将cat的父字段设置为c的父字段,并将c的父字段设置为cat。

代码示例

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

logger.setHierarchy(this);
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;

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

logger.setHierarchy(this);
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;

代码示例来源:origin: apache/log4j

logger.setHierarchy(this);
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);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;

代码示例来源:origin: org.apache/log4j

logger.setHierarchy(this);
ht.put(key, logger);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;

代码示例来源:origin: apache-log4j/log4j

logger.setHierarchy(this);
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);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;

代码示例来源:origin: org.apache.log4j/com.springsource.org.apache.log4j

logger.setHierarchy(this);
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);
updateChildren((ProvisionNode) o, logger);
updateParents(logger);
return logger;

相关文章