directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject directory-fortress-core git commit: set default log
Date Fri, 20 Mar 2015 14:01:16 GMT
Repository: directory-fortress-core
Updated Branches:
  refs/heads/master 13814d7ad -> 4f7bde19c


set default log


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/4f7bde19
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/4f7bde19
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/4f7bde19

Branch: refs/heads/master
Commit: 4f7bde19c0dfee5fff836665e10e0572b0902bc5
Parents: 13814d7
Author: Shawn McKinney <smckinney@apache.org>
Authored: Fri Mar 20 09:01:07 2015 -0500
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Fri Mar 20 09:01:07 2015 -0500

----------------------------------------------------------------------
 config/log4j.xml | 36 ++++++++++--------------------------
 1 file changed, 10 insertions(+), 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/4f7bde19/config/log4j.xml
----------------------------------------------------------------------
diff --git a/config/log4j.xml b/config/log4j.xml
index 5e42193..c8526b6 100755
--- a/config/log4j.xml
+++ b/config/log4j.xml
@@ -21,43 +21,27 @@
 <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
 <log4j:configuration debug="false" xmlns:log4j="http://jakarta.apache.org/log4j/">
 
-
-    <appender name="file" class="org.apache.log4j.FileAppender">
-        <param name="File" value="fortress.log"/>
-        <param name="Append" value="true"/>
+    <appender name="console" class="org.apache.log4j.ConsoleAppender">
         <layout class="org.apache.log4j.PatternLayout">
-            <param name="ConversionPattern" value="%t %-5p %c{2} - %m%n"/>
+            <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:sss} %-5p %c{1}:%L
- %m%n"/>
         </layout>
     </appender>
 
-    <appender name="console" class="org.apache.log4j.ConsoleAppender">
+    <appender name="file" class="org.apache.log4j.RollingFileAppender">
+        <param name="append" value="true"/>
+        <param name="maxFileSize" value="10MB"/>
+        <param name="maxBackupIndex" value="10"/>
+        <param name="file" value="fortress.log"/>
         <layout class="org.apache.log4j.PatternLayout">
-            <param name="ConversionPattern" value="%t (%-5p) %m%n"/>
+            <param name="ConversionPattern"
+                   value="%d{yyyy-MM-dd HH:mm:sss} %-5p %c{1}:%L - %m%n"/>
         </layout>
     </appender>
 
-    <!-- Uncomment to store REST log statements to file:
-        <category name="org.apache.directory.fortress.core.rest.RestUtils" class="org.apache.log4j.Logger"
additivity="false">
-            <priority value="INFO" class="org.apache.log4j.Level"/>
-            <appender-ref ref="file"/>
-        </category>
-    -->
-
-<!--
-    <category name="org.apache.directory.fortress.core.example" class="org.apache.log4j.Logger"
additivity="false">
-        <priority value="DEBUG" class="org.apache.log4j.Level"/>
-        <appender-ref ref="console"/>
-    </category>
--->
-
-    <category name="org.apache.directory" class="org.apache.log4j.Logger" additivity="false">
-        <priority value="INFO" class="org.apache.log4j.Level"/>
-        <appender-ref ref="file"/>
-    </category>
-
     <root>
         <priority value="INFO" class="org.apache.log4j.Level"/>
         <appender-ref ref="console"/>
+        <appender-ref ref="file"/>
     </root>
 
 </log4j:configuration>


Mime
View raw message