You would need to change the following properties in log4j.properties.
Either this for all logging:
log4j.rootLogger=WARN,DRFA
log4j.threshhold=WARN
This for all nutch logging:
log4j.logger.org.apache.nutch=WARN
This for all protocols
org.apache.nutch.protocol=WARN
Or this for just the http-protocol:
org.apache.nutch.protocol.http=WARN
I don't remember off the top of my head whether you need to change the
log threshhold as well or just the individual package. I think it is
just the individual package but if that doesn't work also try changing
the log threshold.
Dennis Kubes
Joseph M. wrote:
I am making some modifications in protocol-http. I have inserted
LOG.warn() messages but they do not appear in the output. I tried
converting this line:
log4j.logger.org.apache.nutch.fetcher.Fetcher=INFO,cmdstdout
to
log4j.logger.org.apache.nutch.fetcher.Fetcher=WARN,cmdstdout
But it did not work. I would be very grateful for any help.