本文整理了Java中org.apache.logging.log4j.Marker.hasParents()
方法的一些代码示例,展示了Marker.hasParents()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Marker.hasParents()
方法的具体详情如下:
包路径:org.apache.logging.log4j.Marker
类名称:Marker
方法名:hasParents
[英]Indicates whether this Marker has references to any other Markers.
[中]指示此标记是否引用了任何其他标记。
代码示例来源:origin: org.apache.logging.log4j/log4j-slf4j-impl
@Override
public boolean hasChildren() {
return marker.hasParents();
}
代码示例来源:origin: org.apache.logging.log4j/log4j-slf4j-impl
@Override
public boolean hasReferences() {
return marker.hasParents();
}
代码示例来源:origin: org.apache.logging.log4j/log4j-api
@Test
public void testHasParents() {
final Marker parent = MarkerManager.getMarker("PARENT");
final Marker existing = MarkerManager.getMarker("EXISTING");
assertFalse(existing.hasParents());
existing.setParents(parent);
assertTrue(existing.hasParents());
}
代码示例来源:origin: org.apache.logging.log4j/log4j-slf4j18-impl
@Override
public boolean hasChildren() {
return marker.hasParents();
}
代码示例来源:origin: org.apache.logging.log4j/log4j-slf4j18-impl
@Override
public boolean hasReferences() {
return marker.hasParents();
}
内容来源于网络,如有侵权,请联系作者删除!