atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ames...@apache.org
Subject atlas git commit: ATLAS-1996: Updated Log4J configuration to limit size of log files.
Date Fri, 08 Sep 2017 17:02:41 GMT
Repository: atlas
Updated Branches:
  refs/heads/master a5d52418d -> 4deee50c2


ATLAS-1996: Updated Log4J configuration to limit size of log files.


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/4deee50c
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/4deee50c
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/4deee50c

Branch: refs/heads/master
Commit: 4deee50c2eb405934ab06e0ae2d8eb478dcd2574
Parents: a5d5241
Author: ashutoshm <amestry@hortonworks.com>
Authored: Fri Sep 8 10:02:19 2017 -0700
Committer: ashutoshm <amestry@hortonworks.com>
Committed: Fri Sep 8 10:02:19 2017 -0700

----------------------------------------------------------------------
 .../src/main/resources/atlas-hive-import-log4j.xml |  6 ++++--
 distro/src/conf/atlas-log4j.xml                    | 17 ++++++++++++-----
 typesystem/src/main/resources/atlas-log4j.xml      |  6 ++++--
 3 files changed, 20 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/4deee50c/addons/hive-bridge/src/main/resources/atlas-hive-import-log4j.xml
----------------------------------------------------------------------
diff --git a/addons/hive-bridge/src/main/resources/atlas-hive-import-log4j.xml b/addons/hive-bridge/src/main/resources/atlas-hive-import-log4j.xml
index c1184e5..fe34bb8 100644
--- a/addons/hive-bridge/src/main/resources/atlas-hive-import-log4j.xml
+++ b/addons/hive-bridge/src/main/resources/atlas-hive-import-log4j.xml
@@ -27,11 +27,13 @@
         </layout>
     </appender>
 
-    <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
+    <appender name="FILE" class="org.apache.log4j.RollingFileAppender">
         <param name="File" value="${atlas.log.dir}/${atlas.log.file}"/>
         <param name="Append" value="true"/>
         <layout class="org.apache.log4j.PatternLayout">
             <param name="ConversionPattern" value="%d %-5p - [%t:%x] ~ %m (%C{1}:%L)%n"/>
+            <param name="maxFileSize" value="100MB" />
+            <param name="maxBackupIndex" value="20" />
         </layout>
     </appender>
 
@@ -42,7 +44,7 @@
     </logger>
 
     <logger name="com.thinkaurelius.titan" additivity="false">
-        <level value="info"/>
+        <level value="warn"/>
         <appender-ref ref="FILE"/>
     </logger>
 

http://git-wip-us.apache.org/repos/asf/atlas/blob/4deee50c/distro/src/conf/atlas-log4j.xml
----------------------------------------------------------------------
diff --git a/distro/src/conf/atlas-log4j.xml b/distro/src/conf/atlas-log4j.xml
index a0ef6a9..a0f9629 100755
--- a/distro/src/conf/atlas-log4j.xml
+++ b/distro/src/conf/atlas-log4j.xml
@@ -27,35 +27,42 @@
         </layout>
     </appender>
 
-    <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
+    <appender name="FILE" class="org.apache.log4j.RollingFileAppender">
         <param name="File" value="${atlas.log.dir}/${atlas.log.file}"/>
         <param name="Append" value="true"/>
         <layout class="org.apache.log4j.PatternLayout">
             <param name="ConversionPattern" value="%d %-5p - [%t:%x] ~ %m (%C{1}:%L)%n"/>
+            <param name="maxFileSize" value="100MB" />
+            <param name="maxBackupIndex" value="20" />
         </layout>
     </appender>
 
-    <appender name="AUDIT" class="org.apache.log4j.DailyRollingFileAppender">
+    <appender name="AUDIT" class="org.apache.log4j.RollingFileAppender">
         <param name="File" value="${atlas.log.dir}/audit.log"/>
         <param name="Append" value="true"/>
         <layout class="org.apache.log4j.PatternLayout">
             <param name="ConversionPattern" value="%d %x %m%n"/>
+            <param name="maxFileSize" value="100MB" />
+            <param name="maxBackupIndex" value="20" />
         </layout>
     </appender>
 
-    <appender name="METRICS" class="org.apache.log4j.DailyRollingFileAppender">
+    <appender name="METRICS" class="org.apache.log4j.RollingFileAppender">
         <param name="File" value="${atlas.log.dir}/metric.log"/>
         <param name="Append" value="true"/>
         <layout class="org.apache.log4j.PatternLayout">
             <param name="ConversionPattern" value="%d %x %m%n"/>
+            <param name="maxFileSize" value="100MB" />
         </layout>
     </appender>
 
-    <appender name="FAILED" class="org.apache.log4j.DailyRollingFileAppender">
+    <appender name="FAILED" class="org.apache.log4j.RollingFileAppender">
         <param name="File" value="${atlas.log.dir}/failed.log"/>
         <param name="Append" value="true"/>
         <layout class="org.apache.log4j.PatternLayout">
             <param name="ConversionPattern" value="%d %m"/>
+            <param name="maxFileSize" value="100MB" />
+            <param name="maxBackupIndex" value="20" />
         </layout>
     </appender>
 
@@ -82,7 +89,7 @@
     </logger>
 
     <logger name="com.thinkaurelius.titan" additivity="false">
-        <level value="info"/>
+        <level value="warn"/>
         <appender-ref ref="FILE"/>
     </logger>
 

http://git-wip-us.apache.org/repos/asf/atlas/blob/4deee50c/typesystem/src/main/resources/atlas-log4j.xml
----------------------------------------------------------------------
diff --git a/typesystem/src/main/resources/atlas-log4j.xml b/typesystem/src/main/resources/atlas-log4j.xml
index c30403e..510e2cf 100755
--- a/typesystem/src/main/resources/atlas-log4j.xml
+++ b/typesystem/src/main/resources/atlas-log4j.xml
@@ -27,12 +27,14 @@
         </layout>
     </appender>
 
-    <appender name="AUDIT" class="org.apache.log4j.DailyRollingFileAppender">
+    <appender name="AUDIT" class="org.apache.log4j.RollingFileAppender">
         <param name="File" value="${atlas.log.dir}/audit.log"/>
         <param name="Append" value="true"/>
         <param name="Threshold" value="debug"/>
         <layout class="org.apache.log4j.PatternLayout">
             <param name="ConversionPattern" value="%d %x %m%n"/>
+            <param name="maxFileSize" value="100MB" />
+            <param name="maxBackupIndex" value="20" />
         </layout>
     </appender>
 
@@ -71,7 +73,7 @@
     </logger>
 
     <logger name="com.thinkaurelius.titan" additivity="false">
-        <level value="info"/>
+        <level value="warn"/>
         <appender-ref ref="console"/>
     </logger>
 


Mime
View raw message