if your plugin has a class Variable
public static final Log LOG = LogFactory.getLog(YourClass.class .getName());
And your called method has:
LOG.info("Your Logmessage");
And you created your plugin and configured that Nutch uses your plugin when fetching / crawling / ... then the message is logged in the hadoop.log file.
When you built Nutch, does it say that it builds your plugin?
If so, you can check your plugin configuration, which is deployed to NutchHome / runtime / local / conf / nutch-site.xml:
<property> <name>plugin.includes</name> <value>protocol-http|urlfilter-regex|parse-(html)|yourplugin</value> <description>The plugins which are used in every crawl ordered by call- order</description> </property>
If your plugin is configured at runtime. If you do not change the rebuild Nutch configuration file. If this does not help, you can give me more information.
source share