Author: siren
Date: Wed Jul 26 01:17:48 2006
New Revision: 425668

URL: http://svn.apache.org/viewvc?rev=425668&view=rev
Log:
add special logging configuration to some commandline tools

Modified:
    lucene/nutch/trunk/conf/log4j.properties

Modified: lucene/nutch/trunk/conf/log4j.properties
URL: 
http://svn.apache.org/viewvc/lucene/nutch/trunk/conf/log4j.properties?rev=425668&r1=425667&r2=425668&view=diff
==============================================================================
--- lucene/nutch/trunk/conf/log4j.properties (original)
+++ lucene/nutch/trunk/conf/log4j.properties Wed Jul 26 01:17:48 2006
@@ -4,6 +4,24 @@
 # Logging Threshold
 log4j.threshhold=ALL
 
+#special logging requirements for some commandline tools
+log4j.logger.org.apache.nutch.crawl.Crawl=INFO,cmdstdout
+log4j.logger.org.apache.nutch.crawl.Injector=INFO,cmdstdout
+log4j.logger.org.apache.nutch.crawl.Generator=INFO,cmdstdout
+log4j.logger.org.apache.nutch.crawl.Fetcher=INFO,cmdstdout
+log4j.logger.org.apache.nutch.parse.ParseSegment=INFO,cmdstdout
+log4j.logger.org.apache.nutch.crawl.CrawlDbReader=INFO,cmdstdout
+log4j.logger.org.apache.nutch.crawl.CrawlDbMerger=INFO,cmdstdout
+log4j.logger.org.apache.nutch.crawl.LinkDbReader=INFO,cmdstdout
+log4j.logger.org.apache.nutch.segment.SegmentReader=INFO,cmdstdout
+log4j.logger.org.apache.nutch.segment.SegmentMerger=INFO,cmdstdout
+log4j.logger.org.apache.nutch.crawl.CrawlDb=INFO,cmdstdout
+log4j.logger.org.apache.nutch.crawl.LinkDb=INFO,cmdstdout
+log4j.logger.org.apache.nutch.crawl.LinkDbMerger=INFO,cmdstdout
+log4j.logger.org.apache.nutch.indexer.Indexer=INFO,cmdstdout
+log4j.logger.org.apache.nutch.indexer.DeleteDuplicates=INFO,cmdstdout
+log4j.logger.org.apache.nutch.indexer.IndexMerger=INFO,cmdstdout
+
 log4j.logger.org.apache.nutch=INFO
 log4j.logger.org.apache.hadoop=WARN
 
@@ -36,6 +54,12 @@
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} 
(%F:%M(%L)) - %m%n
 
+#
+# plain layout used for commandline tools to output to console
+#
+log4j.appender.cmdstdout=org.apache.log4j.ConsoleAppender
+log4j.appender.cmdstdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.cmdstdout.layout.ConversionPattern=%m%n
 
 #
 # Rolling File Appender



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-cvs mailing list
Nutch-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to