nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kauu" <bab...@gmail.com>
Subject log4j problem
Date Wed, 31 Jan 2007 05:45:01 GMT
why when I changed the nutch/conf/log4j.properties

 

I just changed the first line 

  Log4j.rootLogger=info,drfa to log4j.rootLogger=debug,drfa

Like this:

***  **********************************
************

    # RootLogger - DailyRollingFileAppender

#log4j.rootLogger=INFO,DRFA

log4j.rootLogger=DEBUG,DRFA

 

# 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.fetcher.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 

。。。。。。

*      **********************************
*********

*      In the console ,it show me the error like below

 

 

 

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: \ (系统找不到指定的路径。)

    at java.io.FileOutputStream.openAppend(Native Method)

    at java.io.FileOutputStream.<init>(Unknown Source)

    at java.io.FileOutputStream.<init>(Unknown Source)

    at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)

    at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)

    at
org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAp
pender.java:215)

    at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)

    at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132
)

    at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)

    at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.jav
a:654)

    at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.jav
a:612)

    at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigur
ator.java:509)

    at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
415)

    at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
441)

    at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.
java:468)

    at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)

    at org.apache.log4j.Logger.getLogger(Logger.java:104)

    at
org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)

    at
org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message