WW-4504 - Mark current logging layer as @deprecated and use Log4j2 as default one
- Use log4j2 in all provided apps Project: http://git-wip-us.apache.org/repos/asf/struts-examples/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-examples/commit/3be5d652 Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/3be5d652 Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/3be5d652 Branch: refs/heads/master Commit: 3be5d652af1d2fcc02cccdb2ca77df524c2f0628 Parents: 498496e Author: Johannes Geppert <joh...@gmail.com> Authored: Mon May 25 21:42:08 2015 +0200 Committer: Johannes Geppert <joh...@gmail.com> Committed: Mon May 25 21:42:08 2015 +0200 ---------------------------------------------------------------------- pom.xml | 12 +----------- src/main/resources/log4j2.xml | 4 ++-- 2 files changed, 3 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts-examples/blob/3be5d652/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index f10b53c..cec84f6 100644 --- a/pom.xml +++ b/pom.xml @@ -47,11 +47,7 @@ <scope>provided</scope> </dependency> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-api</artifactId> - <version>${log4j2.version}</version> - </dependency> + <!-- Logging --> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> @@ -78,12 +74,6 @@ <scanTargets> <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget> </scanTargets> - <systemProperties> - <systemProperty> - <name>xwork.loggerFactory</name> - <value>com.opensymphony.xwork2.util.logging.log4j2.Log4j2LoggerFactory</value> - </systemProperty> - </systemProperties> </configuration> </plugin> </plugins> http://git-wip-us.apache.org/repos/asf/struts-examples/blob/3be5d652/src/main/resources/log4j2.xml ---------------------------------------------------------------------- diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml index aee8b3b..092d5f6 100644 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -6,8 +6,8 @@ </Console> </Appenders> <Loggers> - <Logger name="com.opensymphony.xwork2" level="debug"/> - <Logger name="org.apache.struts2" level="debug"/> + <Logger name="com.opensymphony.xwork2" level="info"/> + <Logger name="org.apache.struts2" level="info"/> <Root level="warn"> <AppenderRef ref="STDOUT"/> </Root>