[infinispan-issues] [JBoss JIRA] (ISPN-2976) Log4J dependencies in codebase to be cleaned up

Dan Berindei (JIRA) jira-events at lists.jboss.org
Tue Apr 2 06:40:43 EDT 2013


    [ https://issues.jboss.org/browse/ISPN-2976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764324#comment-12764324 ] 

Dan Berindei commented on ISPN-2976:
------------------------------------

The Appender and Filter interfaces changed quite a bit, supporting both is going to be tricky. Log4j2 does include the Log4j 1.2 API in the bridge jar, but AFAICT it can't use Appenders defined with the old interface.

I made the minimal changes to make it work in this branch: https://github.com/danberindei/infinispan/tree/t_2976_m

                
> Log4J dependencies in codebase to be cleaned up
> -----------------------------------------------
>
>                 Key: ISPN-2976
>                 URL: https://issues.jboss.org/browse/ISPN-2976
>             Project: Infinispan
>          Issue Type: Task
>    Affects Versions: 5.2.5.Final
>            Reporter: Manik Surtani
>            Assignee: Mircea Markus
>             Fix For: 5.3.0.Alpha1, 5.3.0.Final
>
>
> When attempting to move to Log4J 2.0, I've noticed a number of hard deps on log4j classes.
> {{SampleConfigFilesCorrectnessTest}} - this class makes use of a custom appender to analyse what a user is being warned of when a config file is parsed.  Why are we using Log4J for this?  Our own logging interface should be mocked and messages captured directly.
> {{RehashStressTest}} and {{NucleotideCache}} - seems like a bug, I presume the author intended to use {{org.infinispan.logging.Log}}.
> {{CompressedFileAppender}} and {{ThreadNameFilter}}- can this be written in a way that works with Log4J 1.x as well as 2.x?  Or have the SPIs changed that much?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list