public
void addHierarchyEventListener(HierarchyEventListener listener) {
if(listeners.contains(listener)) {
LogLog.warn("Ignoring attempt to add an existent listener.");
} else {
listeners.addElement(listener);
}
}
java类org.apache.log4j.spi.HierarchyEventListener的实例源码
Hierarchy.java 文件源码
项目:cacheonix-core
阅读 22
收藏 0
点赞 0
评论 0
Category.java 文件源码
项目:cacheonix-core
阅读 25
收藏 0
点赞 0
评论 0
/**
* LoggerRepository forgot the fireRemoveAppenderEvent method,
* if using the stock Hierarchy implementation, then call its fireRemove.
* Custom repositories can implement HierarchyEventListener if they
* want remove notifications.
* @param appender appender, may be null.
*/
private void fireRemoveAppenderEvent(final Appender appender) {
if (appender != null) {
if (repository instanceof Hierarchy) {
((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
} else if (repository instanceof HierarchyEventListener) {
((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
}
}
}
Hierarchy.java 文件源码
项目:daq-eclipse
阅读 25
收藏 0
点赞 0
评论 0
public
void addHierarchyEventListener(HierarchyEventListener listener) {
if(listeners.contains(listener)) {
LogLog.warn("Ignoring attempt to add an existent listener.");
} else {
listeners.addElement(listener);
}
}
Category.java 文件源码
项目:daq-eclipse
阅读 26
收藏 0
点赞 0
评论 0
/**
* LoggerRepository forgot the fireRemoveAppenderEvent method,
* if using the stock Hierarchy implementation, then call its fireRemove.
* Custom repositories can implement HierarchyEventListener if they
* want remove notifications.
* @param appender appender, may be null.
*/
private void fireRemoveAppenderEvent(final Appender appender) {
if (appender != null) {
if (repository instanceof Hierarchy) {
((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
} else if (repository instanceof HierarchyEventListener) {
((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
}
}
}
Hierarchy.java 文件源码
项目:nabs
阅读 23
收藏 0
点赞 0
评论 0
public
void addHierarchyEventListener(HierarchyEventListener listener) {
if(listeners.contains(listener)) {
LogLog.warn("Ignoring attempt to add an existent listener.");
} else {
listeners.addElement(listener);
}
}
TestLog4Json.java 文件源码
项目:hadoop-oss
阅读 27
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
TestLog4Json.java 文件源码
项目:hadoop
阅读 24
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
TestLog4Json.java 文件源码
项目:aliyun-oss-hadoop-fs
阅读 24
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
TestLog4Json.java 文件源码
项目:big-c
阅读 26
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
LoggerUtil.java 文件源码
项目:apex-core
阅读 25
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(HierarchyEventListener listener)
{
loggerRepository.addHierarchyEventListener(listener);
}
TestLog4Json.java 文件源码
项目:hadoop-2.6.0-cdh5.4.3
阅读 26
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
TestLog4Json.java 文件源码
项目:hadoop-plus
阅读 27
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
TestLog4Json.java 文件源码
项目:hops
阅读 23
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
TestLog4Json.java 文件源码
项目:hadoop-TCP
阅读 26
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
TestLog4Json.java 文件源码
项目:hardfs
阅读 22
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
TestLog4Json.java 文件源码
项目:hadoop-on-lustre2
阅读 23
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
LogManager.java 文件源码
项目:log4j2
阅读 30
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(final HierarchyEventListener listener) {
}
LogManager.java 文件源码
项目:logging-log4j2
阅读 28
收藏 0
点赞 0
评论 0
@Override
public void addHierarchyEventListener(final HierarchyEventListener listener) {
}