I'm adding an aliases attribute to the Plugin annotation.

On Aug 16, 2013, at 6:38 AM, Remko Popma wrote:

> Maybe we just need another plugin for the 2nd name then. Subclass or delegate?
> 
> On Friday, August 16, 2013, Ralph Goers wrote:
> I had the same thought. People switching from log4j 1 or logback will 
> probably make that mistake a lot. Plus this breaks virtually everyone 
> currently using Log4j 2.  The problem is that I don't think there is 
> currently a way for a plugin to have 2 names.
> 
> Sent from my iPad
> 
> On Aug 16, 2013, at 6:03 AM, Remko Popma <remko.po...@gmail.com> wrote:
> 
>> Would it be an idea to support both appender-ref and appenderRef attributes?
>> 
>> 
>> 
>> On Thu, Aug 15, 2013 at 10:22 AM, Gary Gregory <garydgreg...@gmail.com> 
>> wrote:
>> I never thought that Log4J 2 configuration files should be backward 
>> compatible with version 1, and even less so with a different product.
>> 
>> Gary
>> 
>> 
>> On Wed, Aug 14, 2013 at 8:51 PM, Ralph Goers <ralph.go...@dslextreme.com> 
>> wrote:
>> Now that I see this it kind of scares me.  Log4j 1.x and Logback both use 
>> appender-ref. Anyone using Log4j 2 will now be broken.
>> 
>> On Aug 14, 2013, at 1:05 PM, ggreg...@apache.org wrote:
>> 
>> > Modified: 
>> > logging/log4j/log4j2/trunk/core/src/test/resources/log4j2-config.xml
>> > URL: 
>> > http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/test/resources/log4j2-config.xml?rev=1514021&r1=1514020&r2=1514021&view=diff
>> > ==============================================================================
>> > --- logging/log4j/log4j2/trunk/core/src/test/resources/log4j2-config.xml 
>> > (original)
>> > +++ logging/log4j/log4j2/trunk/core/src/test/resources/log4j2-config.xml 
>> > Wed Aug 14 20:05:54 2013
>> > @@ -30,10 +30,10 @@
>> >   </appenders>
>> >   <loggers>
>> >     <logger name="org.apache.test" level="trace" additivity="false">
>> > -      <appender-ref ref="List"/>
>> > +      <AppenderRef ref="List"/>
>> >     </logger>
>> >     <root level="error">
>> > -      <appender-ref ref="STDOUT"/>
>> > +      <AppenderRef ref="STDOUT"/>
>> >     </root>
>> >   </loggers>
>> > </configuration>
>> > \ No newline at end of file
>> >
>> > Modified: 
>> > logging/log4j/log4j2/trunk/core/src/test/resources/log4j2-console-highlight-default.xml
>> > URL: 
>> > http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/test/resources/log4j2-console-highlight-default.xml?rev=1514021&r1=1514020&r2=1514021&view=diff
>> > ==============================================================================
>> > --- 
>> > logging/log4j/log4j2/trunk/core/src/test/resources/log4j2-console-highlight-default.xml
>> >  (original)
>> > +++ 
>> > logging/log4j/log4j2/trunk/core/src/test/resources/log4j2-console-highlight-default.xml
>> >  Wed Aug 14 20:05:54 2013
>> > @@ -25,7 +25,7 @@
>> >   <loggers>
>> >     <logger name="org.foo" level="DEBUG" />
>> >     <root level="TRACE">
>> > -      <appender-ref ref="Console" />
>> > +      <AppenderRef ref="Console" />
>> >     </root>
>> >   </loggers>
>> > </configuration>
>> > \ No newline at end of file
>> >
>> > Modified: 
>> > logging/log4j/log4j2/trunk/core/src/test/resources/log4j2-console-highlight-logback.xml
>> > URL: 
>> > http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/test/resources/log4j2-console-highlight-logback.xml?rev=1514021&r1=1514020&r2=1514021&view=diff
>> > ==============================================================================
>> > --- 
>> > logging/log4j/log4j2/trunk/core/src/test/resources/log4j2-console-highlight-logback.xml
>> >  (original)

Reply via email to