[infinispan-issues] [JBoss JIRA] Commented: (ISPN-162) Add excludes for log4j.xml to test jar generation

Galder Zamarreno (JIRA) jira-events at lists.jboss.org
Wed Aug 19 06:41:26 EDT 2009


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

Galder Zamarreno commented on ISPN-162:
---------------------------------------

Exclusion added, the following still needs doing:

>> +1 to ensuring it does not get packaged with the test jar, but it should
>> still be included in the distro (in the conf directory) as an example of
>> how folks can enable logging.
>
> If we want to include it in the distro, it definitely must have a diff name to log4j.xml, otherwise it'll get picked up and users won't be able to get override it in any way.
>
> Currently we're not including a log4j.xml in the main distro at all.

Hmm.  Ok, then when it is copied to the conf directory of the distro it should be renamed to log4j-sample.xml, and there should be a README-logging.txt to explain how to enable this file, either by renaming it to log4j.xml or by using -Dlog4j.configuration.  WDYT? 

> Add excludes for log4j.xml to test jar generation
> -------------------------------------------------
>
>                 Key: ISPN-162
>                 URL: https://jira.jboss.org/jira/browse/ISPN-162
>             Project: Infinispan
>          Issue Type: Task
>            Reporter: Galder Zamarreno
>            Assignee: Galder Zamarreno
>             Fix For: 4.0.0.BETA1
>
>
> While working on the ISPN cache provider, I've realised that the test 
> jar contains a log4j.xml and this stops you from using a different log4j 
> settings to the one in the test jar. This is because log4j first and 
> foremost looks for a 'log4j.xml' and if present, it uses that. This 
> cannot be overriden with -Dlog4j.configuration.
> As a result, I'm adding an excludes to avoid this log4j.xml ending up in 
> the test jar. The other alternative would be to rename 
> src/test/resources/log4j.xml to something else, i.e. 
> log4j-infinispan.xml but doing this would stop the log4j settings from 
> being picked up by default during Infinispan development, hence, I think 
> the excludes setting is the best option here.
> If anyone has any issues with this, let me know.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list