Hi Kshitij,
On Mon, Apr 11, 2016 at 8:12 AM, <[email protected]> wrote:
>
> I am working on developing a plugin for nutch. I have added some code to
> see the output either in console or in logs like this:
>
> *LOG.debug("Found keys :" + lcMetatag + "\t" + value);*
>
I would advise you to use the parameterized messaging convention for all of
your logging
http://www.slf4j.org/faq.html#logging_performance
>
> I have also tried adding these 2 files in log4j.properties (& recompiling
> nutch):
>
> *# RootLogger - DailyRollingFileAppender**
> **log4j.rootLogger=DEBUG,DRFA**
> **
> **log4j.logger.org.apache.nutch=DEBUG**
>
I would suggest that you explicitly add your class to the log4j.properties
file, examples of how to do this can be found below
https://github.com/apache/nutch/blob/trunk/conf/log4j.properties#L26-L61
> *
> But I cannot find the output neither in console nor in hadoop logs.
>
Please remember to rebuild your codebase after you change anything, this
will ensure that new files are packaged into the .job file for submission
to YARN.