This is not something I actually did, but you should be able to achieve this by 
adding a log4j appender for RabbitMQ (such as 
https://github.com/plant42/rabbitmq-log4j-appender), and configuring the 
relevant loggers and filters to send only the logging events you need to that 
appender.
BTW, if you just want "fetching started/fetching ended" style messages, you can 
simply add it to the crawl script, no need to touch the Java code.

> -----Original Message-----
> From: Roannel Fernández Hernández <roan...@uci.cu>
> Sent: 29 June 2018 06:24
> To: user@nutch.apache.org
> Subject: Events out-of-the-box
> 
> 
> 
> Hi folks,
> 
> 
> 
> 
> I'm using Nutch 1.14 and I have to send notifications to a RabbitMQ queue when
> a every step starts and ends. So, my question is: Do I have to change the 
> code to
> achieve this or is there an easier way? How can I do this?
> 
> 
> 
> 
> If code should be changed I think is a good idea provide out-of-the-box events
> for each step. We can even pass the counters from the context to each event. I
> don't know, it's just an idea.
> 
> 
> 
> 
> What do you think guys?
> 
> 
> 
> 
> Regards
> 
> UCIENCIA 2018: III Conferencia Científica Internacional de la Universidad de 
> las
> Ciencias Informáticas.
> Del 24-26 de septiembre, 2018 http://uciencia.uci.cu http://eventos.uci.cu

Reply via email to