Author: lukaszlenart
Date: Thu May 16 19:11:03 2013
New Revision: 1483512

URL: http://svn.apache.org/r1483512
Log:
Configures logging

Added:
    struts/struts2/trunk/apps/blank/src/main/resources/log4j.properties
Modified:
    struts/struts2/trunk/apps/blank/pom.xml

Modified: struts/struts2/trunk/apps/blank/pom.xml
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/apps/blank/pom.xml?rev=1483512&r1=1483511&r2=1483512&view=diff
==============================================================================
--- struts/struts2/trunk/apps/blank/pom.xml (original)
+++ struts/struts2/trunk/apps/blank/pom.xml Thu May 16 19:11:03 2013
@@ -54,6 +54,16 @@
         </dependency>
 
         <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+        </dependency>
+
+        <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>struts2-junit-plugin</artifactId>
             <version>${project.version}</version>

Added: struts/struts2/trunk/apps/blank/src/main/resources/log4j.properties
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/apps/blank/src/main/resources/log4j.properties?rev=1483512&view=auto
==============================================================================
--- struts/struts2/trunk/apps/blank/src/main/resources/log4j.properties (added)
+++ struts/struts2/trunk/apps/blank/src/main/resources/log4j.properties Thu May 
16 19:11:03 2013
@@ -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


Reply via email to