Java 类org.apache.logging.log4j.core.filter.AbstractFilterable 实例源码

项目:monarch    文件:Configurator.java   
public static boolean hasAppenderFilter(final Configuration config) {
  for (Appender appender : config.getAppenders().values()) {
    if (appender instanceof AbstractFilterable) {
      if (((AbstractFilterable) appender).hasFilter()) {
        return true;
      }
    }
  }
  return false;
}
项目:logging-log4j2    文件:AppenderAdmin.java   
@Override
public String getFilter() {
    if (appender instanceof AbstractFilterable) {
        return String.valueOf(((AbstractFilterable) appender).getFilter());
    }
    return null;
}