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; }
@Override public String getFilter() { if (appender instanceof AbstractFilterable) { return String.valueOf(((AbstractFilterable) appender).getFilter()); } return null; }