313314315316317318319320321322323
} else { quietParseUnrecognizedElement(eh, currentElement, props); } } } propSetter.activate(); appender.setErrorHandler(eh); } } /**
344345346347348349350351352353354
} else { quietParseUnrecognizedElement(filter, currentElement, props); } } } propSetter.activate(); LogLog.debug("Adding filter of type ["+filter.getClass() +"] to appender named ["+appender.getName()+"]."); appender.addFilter(filter); } }
500501502503504505506507508509510
} else { quietParseUnrecognizedElement(cat, currentElement, props); } } } propSetter.activate(); } /** Used internally to parse a layout element. */
531532533534535536537538539540541
parseUnrecognizedElement(instance, currentElement, props); } } } propSetter.activate(); return layout; } catch (Exception oops) { LogLog.error("Could not create the Layout. Reported error follows.", oops);
280281282283284285286287288289290
} else { parseUnrecognizedElement(instance, currentElement, props); } } } propSetter.activate(); return appender; } /* Yes, it's ugly. But all of these exceptions point to the same problem: we can't create an Appender */ catch (Exception oops) {
331332333334335336337338339340341
362363364365366367368369370371372
518519520521522523524525526527528
549550551552553554555556557558559
205206207208209210211212213214215
"] which does not implement org.apache.log4j.spi.AppenderAttachable."); } } } } propSetter.activate(); return appender; } /* Yes, it's ugly. But all of these exceptions point to the same problem: we can't create an Appender */ catch (Exception oops) {