any23-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject [1/2] git commit: ANY23-156 - Add logging dependencies to plugins and service
Date Wed, 01 May 2013 19:16:34 GMT
Updated Branches:
  refs/heads/master 64a8c534a -> 2a2e97956


ANY23-156 - Add logging dependencies to plugins and service


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

Branch: refs/heads/master
Commit: a0c1028b2019bd4c07e227626fba552d6c288284
Parents: 64a8c53
Author: lewismc <lewis.mcgibbney@gmail.com>
Authored: Tue Apr 30 17:36:10 2013 -0700
Committer: lewismc <lewis.mcgibbney@gmail.com>
Committed: Tue Apr 30 17:36:10 2013 -0700

----------------------------------------------------------------------
 plugins/basic-crawler/pom.xml               |    7 +++++++
 plugins/html-scraper/pom.xml                |    7 +++++++
 plugins/office-scraper/pom.xml              |    7 +++++++
 service/pom.xml                             |    7 +++++++
 service/src/test/resources/log4j.properties |   20 ++++++++++++++++++++
 5 files changed, 48 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/any23/blob/a0c1028b/plugins/basic-crawler/pom.xml
----------------------------------------------------------------------
diff --git a/plugins/basic-crawler/pom.xml b/plugins/basic-crawler/pom.xml
index 5d889a8..41614d2 100644
--- a/plugins/basic-crawler/pom.xml
+++ b/plugins/basic-crawler/pom.xml
@@ -71,6 +71,13 @@
       <artifactId>jcommander</artifactId>
       <scope>provided</scope>
     </dependency>
+    
+    <!-- Logging -->
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>${slf4j.logger.version}</version>
+    </dependency>
 
     <!-- BEGIN: plugins -->
     <dependency>

http://git-wip-us.apache.org/repos/asf/any23/blob/a0c1028b/plugins/html-scraper/pom.xml
----------------------------------------------------------------------
diff --git a/plugins/html-scraper/pom.xml b/plugins/html-scraper/pom.xml
index b286ff3..1033c98 100644
--- a/plugins/html-scraper/pom.xml
+++ b/plugins/html-scraper/pom.xml
@@ -80,6 +80,13 @@
       <optional>true</optional>
     </dependency>
     <!-- END: plugins -->
+    
+    <!-- Logging -->
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>${slf4j.logger.version}</version>
+    </dependency>
 
     <!-- BEGIN: Test Dependencies -->
     <dependency>

http://git-wip-us.apache.org/repos/asf/any23/blob/a0c1028b/plugins/office-scraper/pom.xml
----------------------------------------------------------------------
diff --git a/plugins/office-scraper/pom.xml b/plugins/office-scraper/pom.xml
index 4cf36fd..e6ae80b 100644
--- a/plugins/office-scraper/pom.xml
+++ b/plugins/office-scraper/pom.xml
@@ -53,6 +53,13 @@
       <groupId>org.apache.poi</groupId>
       <artifactId>poi</artifactId>
     </dependency>
+    
+    <!-- Logging -->
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>${slf4j.logger.version}</version>
+    </dependency>
 
     <!-- BEGIN: plugins -->
     <dependency>

http://git-wip-us.apache.org/repos/asf/any23/blob/a0c1028b/service/pom.xml
----------------------------------------------------------------------
diff --git a/service/pom.xml b/service/pom.xml
index cd2f26d..25e1bad 100644
--- a/service/pom.xml
+++ b/service/pom.xml
@@ -49,6 +49,13 @@
       <version>${project.version}</version>
     </dependency>
 
+    <!-- Logging -->
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>${slf4j.logger.version}</version>
+    </dependency>
+
     <!-- BEGIN: Servlet Deps. -->
     <dependency>
       <groupId>org.mortbay.jetty</groupId>

http://git-wip-us.apache.org/repos/asf/any23/blob/a0c1028b/service/src/test/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/service/src/test/resources/log4j.properties b/service/src/test/resources/log4j.properties
new file mode 100644
index 0000000..2a65ccf
--- /dev/null
+++ b/service/src/test/resources/log4j.properties
@@ -0,0 +1,20 @@
+log4j.rootCategory=INFO, R, O  
+      
+# Stdout  
+log4j.appender.O=org.apache.log4j.ConsoleAppender  
+      
+# File  
+#log4j.appender.R=org.apache.log4j.RollingFileAppender  
+#log4j.appender.R.File=log4j.log  
+      
+# Control the maximum log file size  
+#log4j.appender.R.MaxFileSize=100KB  
+      
+# Archive log files (one backup file here)  
+log4j.appender.R.MaxBackupIndex=1  
+      
+log4j.appender.R.layout=org.apache.log4j.PatternLayout  
+log4j.appender.O.layout=org.apache.log4j.PatternLayout  
+      
+log4j.appender.R.layout.ConversionPattern=[%d{ISO8601}]%5p%6.6r[%t]%x - %C.%M(%F:%L) - %m%n
 
+log4j.appender.O.layout.ConversionPattern=[%d{ISO8601}]%5p%6.6r[%t]%x - %C.%M(%F:%L) - %m%n
 


Mime
View raw message