Adds proper logging dependency and configuration
Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/f1861adf Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/f1861adf Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/f1861adf Branch: refs/heads/develop Commit: f1861adff40e6c0784584cb8178db8c8eb0e04ec Parents: a2ba908 Author: Lukasz Lenart <lukaszlen...@apache.org> Authored: Thu Aug 7 07:42:15 2014 +0200 Committer: Lukasz Lenart <lukaszlen...@apache.org> Committed: Thu Aug 7 07:42:15 2014 +0200 ---------------------------------------------------------------------- apps/rest-showcase/pom.xml | 4 ++++ apps/rest-showcase/src/main/resources/log4j.properties | 13 +++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/f1861adf/apps/rest-showcase/pom.xml ---------------------------------------------------------------------- diff --git a/apps/rest-showcase/pom.xml b/apps/rest-showcase/pom.xml index 4d9507e..965b0d1 100644 --- a/apps/rest-showcase/pom.xml +++ b/apps/rest-showcase/pom.xml @@ -49,6 +49,10 @@ <artifactId>struts2-config-browser-plugin</artifactId> </dependency> <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + </dependency> + <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> http://git-wip-us.apache.org/repos/asf/struts/blob/f1861adf/apps/rest-showcase/src/main/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/apps/rest-showcase/src/main/resources/log4j.properties b/apps/rest-showcase/src/main/resources/log4j.properties index a29a304..3c5af7c 100644 --- a/apps/rest-showcase/src/main/resources/log4j.properties +++ b/apps/rest-showcase/src/main/resources/log4j.properties @@ -11,19 +11,16 @@ # Set root logger level to WARN and append to stdout -log4j.rootLogger=WARN, stdout - +log4j.rootLogger=INFO, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Pattern to output the caller's file name and line number. log4j.appender.stdout.layout.ConversionPattern=%d %5p (%c:%L) - %m%n # Print only messages of level ERROR or above in the package noModule. -log4j.logger.noModule=ERROR - -# OpenSymphony Stuff -log4j.logger.com.opensymphony=INFO +log4j.logger.noModule=FATAL -# Struts2 Stuff -log4j.logger.org.apache.struts2=INFO +log4j.logger.com.opensymphony.xwork2=DEBUG +log4j.logger.org.apache.struts2=DEBUG