I just found a bug in the way the log messages from Hadoop LogFormatter are added as a new appender to the Log4j rootLogger.
Since a new Log4j appender is created and added to the root logger each time these classes are loaded log messages start getting repeated. I'm using Nutch/Hadoop inside an other application so other may not be seeing this problem. I think the simple fix is as easy as setting a name for the new appender before adding it and then at the begining of the constructor checking to see if it's already been added. Also as the comment says in both the PdfParser and RSSParser this code should be moved to a common place. I'd be happy to make these changes and submit a patch, but I wanted to know it the change would be welcome first. Also does anyone know a good place for the new util method? Maybe a new static method on LogFormatter, but then the log4j jar would need to be added to the to the common lib and the classpath. --Jason ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nutch-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-developers
