On Tue, Jun 10, 2014 at 7:11 PM, Ralph Goers <ralph.go...@dslextreme.com> wrote:
> I am working on a new Appender and am noticing that the debug output is > now far less useful than it used to be. I used to see the factory method > being invoked with all of its parameters very nicely formatted. Now I see > > 2014-06-10 16:02:37,858 DEBUG No compatible method annotated with > interface org.apache.logging.log4j.core.config.plugins.PluginBuilderFactory > found in class class org.apache.logging.log4j.web.appender.ServletAppender. > 2014-06-10 16:02:37,858 DEBUG Found factory method class > org.apache.logging.log4j.web.appender.ServletAppender.public static > org.apache.logging.log4j.web.appender.ServletAppender > org.apache.logging.log4j.web.appender.ServletAppender.createAppender(org.apache.logging.log4j.core.Layout,org.apache.logging.log4j.core.Filter,java.lang.String,java.lang.String). > 2014-06-10 16:02:37,864 DEBUG Constructing plugin of type class > org.apache.logging.log4j.web.appender.ServletAppender > 2014-06-10 16:02:37,864 DEBUG PatternLayout(%m%n) > 2014-06-10 16:02:37,864 DEBUG Constructing plugin of type class > org.apache.logging.log4j.web.appender.ServletAppender > 2014-06-10 16:02:37,865 DEBUG Constructing plugin of type class > org.apache.logging.log4j.web.appender.ServletAppender > 2014-06-10 16:02:37,865 DEBUG Attribute(name="Servlet") > 2014-06-10 16:02:37,865 DEBUG Constructing plugin of type class > org.apache.logging.log4j.web.appender.ServletAppender > 2014-06-10 16:02:37,865 DEBUG Null string given to convert. Using default > [null]. > 2014-06-10 16:02:37,866 DEBUG Attribute(ignoreExceptions="null") > > This is far more verbose, repetitive, and is nowhere near as clear as it > used to be. > > Can you please get the logging output back to the old format? > > Also, can we change PatternLayout back to a factory and remove the message > about no builder factory being present? > I think we need to decide how many ways there are to configure a plugin: factory, builder, and whatever else we've been discussing. This is getting quite confusing! I thought we had a thread going on the topic already... Gary > > Ralph > -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory