[ 
https://issues.apache.org/jira/browse/GEODE-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14961331#comment-14961331
 ] 

ASF subversion and git services commented on GEODE-189:
-------------------------------------------------------

Commit 21743ec131735cb7c3fd11c6a4ce3e18b79b06f9 in incubator-geode's branch 
refs/heads/feature/GEODE-291 from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=21743ec ]

GEODE-189: Configure Log4J 2 using classpath instead of system property

Rename log4j2-default.xml to log4j2.xml. Move log4j2.xml and
log4j2-cli.xml to the root of the gemfire-core JAR file. By default
Log4J 2 will find and use the log4j2.xml in the JAR file unless the
user places a custom config file earlier in the classpath or specifies
the log4j.configurationFile system property.

The new JGroups JAR also contains log4j2.xml in its root, so we need to
ensure that gemfire-core JAR is on the classpath before JGroups.

Upgrade System-Rules JUnit library to 1.12.1.


> Configure log4j2 on classpath instead of with system property
> -------------------------------------------------------------
>
>                 Key: GEODE-189
>                 URL: https://issues.apache.org/jira/browse/GEODE-189
>             Project: Geode
>          Issue Type: Bug
>    Affects Versions: 1.0.0-incubating
>            Reporter: Kirk Lund
>            Assignee: Kirk Lund
>             Fix For: 1.0.0-incubating
>
>
> This change is necessary for GEODE-77. It's easier to complete on its own 
> feature branch and then be cherry-picked over to feature/GEODE-77.
> Geode configures Log4J2 using a system property, however, if a configuration 
> file is already found on the classpath then it will defer configuration to 
> that file. The new JGroups jar contains a log4j2.xml config file in its root, 
> so Log4J2 finds it on the classpath and always uses it instead of Geode's 
> log4j2-default.xml.
> This change would involve moving Geode's log4j2-default.xml to the root of 
> the gemfire-core jar file and rename it to log4j2.xml. The gemfire-core jar 
> would then be placed earlier on the classpath than the jgroups jar so that 
> the default configuration of Geode prefers the one in the gemfire-core jar.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to