如果贵粉碎物有Variable类别
public static final Log LOG = LogFactory.getLog(YourClass.class
.getName());
你们所称的方法是:
LOG.info("Your Logmessage");
And you have built your plugin and configured that Nutch uses your plugin when fetching/crawling/... then the message is logged in the hadoop.log.
当你建造Nutch时,它是否说它正在建设你的花样?
如果是的话,你可以检查您的原始组合,该组合部署在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 in the runtime environment. If not change the configfile an rebuild Nutch. If that doesn t help, you can give me some more information.