gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject [01/50] [abbrv] git commit: GORA-171 Implement Daily Rolling File Appender for localised Gora logging
Date Wed, 04 Jun 2014 16:36:18 GMT
Repository: gora
Updated Branches:
  refs/heads/master a39cfe48e -> e39e9fbcd


GORA-171 Implement Daily Rolling File Appender for localised Gora logging

git-svn-id: https://svn.apache.org/repos/asf/gora/trunk@1568040 13f79535-47bb-0310-9956-ffa450edef68


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

Branch: refs/heads/master
Commit: eb492c6aa699c4a102c8c695db841765279d258a
Parents: be0c994
Author: Lewis John McGibbney <lewismc@apache.org>
Authored: Thu Feb 13 21:20:35 2014 +0000
Committer: Damien Raude-Morvan <damien@dictanova.com>
Committed: Wed Apr 16 00:18:54 2014 +0200

----------------------------------------------------------------------
 CHANGES.txt           |  2 ++
 conf/log4j.properties | 33 +++++++++++++++++++++++++++------
 2 files changed, 29 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/eb492c6a/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index f7602bd..4da6704 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,6 +4,8 @@
 
 Gora Change Log
 
+* GORA-171 Implement Daily Rolling File Appender for localised Gora logging (lewismc)
+
 * GORA-119 implement a filter enabled scan in gora (ferdy, kturner, enis, Tien Nguyen Manh
via lewismc)
 
 * GORA-290 StatefulHashMap removes the entry when put with same value (Alparslan Avci via
hsaputra)

http://git-wip-us.apache.org/repos/asf/gora/blob/eb492c6a/conf/log4j.properties
----------------------------------------------------------------------
diff --git a/conf/log4j.properties b/conf/log4j.properties
index b7553c8..8293138 100644
--- a/conf/log4j.properties
+++ b/conf/log4j.properties
@@ -13,15 +13,22 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-gora.root.logger=INFO,console
+# Define some default values that can be overridden by system properties
+# Logging Threshold
+gora.root.logger=INFO,DRFA
 gora.log.dir=.
 gora.log.file=gora.log
+log4j.threshhold=ALL
 
+# RootLogger - DailyRollingFileAppender
 log4j.rootLogger=${gora.root.logger}
 
-# Define some default values that can be overridden by system properties
-# Logging Threshold
-log4j.threshhold=ALL
+#special logging requirements for some commandline tools
+log4j.logger.org.apache.gora.compiler.GoraCompiler=INFO,console
+log4j.logger.org.apache.avro.specific.SpecificCompiler=INFO,console
+log4j.logger.org.apache.gora.dynamodb.compiler.GoraDynamoDBCompiler=INFO,console
+log4j.logger.org.apache.gora.tutorial.log.LogManager=INFO,console
+log4j.logger.org.apache.gora.tutorial.log.LogAnalytics=INFO,console
 
 #
 # Daily Rolling File Appender
@@ -33,7 +40,7 @@ log4j.appender.DRFA.File=${gora.log.dir}/${gora.log.file}
 log4j.appender.DRFA.DatePattern=.yyyy-MM-dd
 
 # 30-day backup
-log4j.appender.DRFA.MaxBackupIndex=30
+#log4j.appender.DRFA.MaxBackupIndex=30
 log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
 
 # Pattern format: Date LogLevel LoggerName LogMessage
@@ -41,7 +48,6 @@ log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
 # Debugging Pattern format
 #log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
 
-
 #
 # console
 # Add "console" to rootlogger above if you want to use this 
@@ -52,6 +58,21 @@ log4j.appender.console.layout=org.apache.log4j.PatternLayout
 #log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
 log4j.appender.console.layout.ConversionPattern=%-5p %-30.30c{2} - %m%n
 
+#
+# Rolling File Appender
+#
+
+#log4j.appender.RFA=org.apache.log4j.RollingFileAppender
+#log4j.appender.RFA.File=${hadoop.log.dir}/${hadoop.log.file}
+
+# Logfile size and and 30-day backups
+#log4j.appender.RFA.MaxFileSize=1MB
+#log4j.appender.RFA.MaxBackupIndex=30
+
+#log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
+#log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} - %m%n
+#log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
+
 # Custom Logging levels
 log4j.logger.net.sf.jml=WARN
 log4j.logger.org.apache=WARN


Mime
View raw message