From 64328943bd0ba08addf1995f63aed1989ad1d376 Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Thu, 16 May 2013 19:11:03 +0000 Subject: [PATCH] Configures logging git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1483512 13f79535-47bb-0310-9956-ffa450edef68 --- apps/blank/pom.xml | 10 +++++++ .../blank/src/main/resources/log4j.properties | 26 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 apps/blank/src/main/resources/log4j.properties diff --git a/apps/blank/pom.xml b/apps/blank/pom.xml index 6ace01c76..765c9c46a 100644 --- a/apps/blank/pom.xml +++ b/apps/blank/pom.xml @@ -53,6 +53,16 @@ provided + + commons-logging + commons-logging + + + + log4j + log4j + + ${project.groupId} struts2-junit-plugin diff --git a/apps/blank/src/main/resources/log4j.properties b/apps/blank/src/main/resources/log4j.properties new file mode 100644 index 000000000..3c5af7cd6 --- /dev/null +++ b/apps/blank/src/main/resources/log4j.properties @@ -0,0 +1,26 @@ +# +# Log4J Settings for log4j 1.2.x (via jakarta-commons-logging) +# +# The five logging levels used by Log are (in order): +# +# 1. DEBUG (the least serious) +# 2. INFO +# 3. WARN +# 4. ERROR +# 5. FATAL (the most serious) + + +# Set root logger level to WARN and append to 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=FATAL + +log4j.logger.com.opensymphony.xwork2=DEBUG +log4j.logger.org.apache.struts2=DEBUG