Chris Schneider wrote:
I'm trying to bring up a MapReduce system, but am confused about how to
control the logging level. It seems like most of the Nutch code is still
logging the way it used to, but the -logLevel parameter that was getting
passed to each tool's main() method no longer exists (not that these
main methods are getting called by Crawl.java, of course). Previously,
if -logLevel was omitted, each tool would set its logLevel field to
INFO, but those fields no longer exist either. The result seems to be
that the logging level defaults all the way back to the LogFormatter,
which sets all of its handlers to FINEST.
I was sort of expecting there to be a new configuration property
(perhaps a job configuration property?) that would control the logging
level, but I don't see anything like this. Any guidance would be greatly
appreciated.
There is no config property to control logging level. That would be a
useful addition, if someone wishes to contribute it.
In the meantime, Nutch uses Java's built-in logging mechanism.
Instructions for configuring that are in:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/LogManager.html
Doug