struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bphill...@apache.org
Subject [3/3] git commit: changed logging
Date Wed, 16 Apr 2014 12:58:40 GMT
changed logging


Project: http://git-wip-us.apache.org/repos/asf/struts-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts-examples/commit/37cb87df
Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/37cb87df
Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/37cb87df

Branch: refs/heads/crud_branch
Commit: 37cb87df70cc4e0259641d5359b245d5339c6aa9
Parents: 7724ee3
Author: phillips1021 <phillips1021@hotmail.com>
Authored: Wed Apr 16 07:58:03 2014 -0500
Committer: phillips1021 <phillips1021@hotmail.com>
Committed: Wed Apr 16 07:58:03 2014 -0500

----------------------------------------------------------------------
 crud/src/main/resources/log4j.xml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/37cb87df/crud/src/main/resources/log4j.xml
----------------------------------------------------------------------
diff --git a/crud/src/main/resources/log4j.xml b/crud/src/main/resources/log4j.xml
new file mode 100755
index 0000000..a642174
--- /dev/null
+++ b/crud/src/main/resources/log4j.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration PUBLIC "-//log4j/log4j Configuration//EN" "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+    
+    <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
+       <layout class="org.apache.log4j.PatternLayout"> 
+          <param name="ConversionPattern" value="%d %-5p %c.%M:%L - %m%n"/> 
+       </layout> 
+    </appender>
+ 
+    <!-- specify the logging level for loggers from other libraries -->
+
+    <logger name="org.apache.struts">
+    	 <level value="INFO" />
+    </logger>
+  
+   <!-- for all other loggers log only debug and above log messages -->
+     <root>
+        <priority value="WARN"/> 
+        <appender-ref ref="STDOUT" /> 
+     </root> 
+    
+</log4j:configuration> 
+


Mime
View raw message