Re: Nutch logging questions

2006-06-09 Thread Doug Cutting

Jérôme Charron wrote:

For now, I have used the same log4 properties than hadoop (see
http://svn.apache.org/viewvc/lucene/hadoop/trunk/conf/log4j.properties?view=markup&pathrev=411254 


) for the back-end, and
I was thinking to use the stdout for front-end.
What do you think about this?


We should use console rather than stdout, so that it can be 
distinguished from application output.


http://issues.apache.org/jira/browse/HADOOP-292

Doug


Nutch logging questions

2006-06-09 Thread Jérôme Charron

Hi,

I'm currently working on NUTCH-303 so that nutch uses commons logging facade
API and log4j
as the default implementation. All the code is actually switched to and uses
Commons Logging API, and I have
replaced some System.out and printStackTrace to make use of Commons Logging.

To finalize this patch, my problem is on the configuration:

1. Does the back-end and front-end should have the same logging
configuration?
2. What kind of configuration do you think is the best one by default?
For now, I have used the same log4 properties than hadoop (see
http://svn.apache.org/viewvc/lucene/hadoop/trunk/conf/log4j.properties?view=markup&pathrev=411254
) for the back-end, and
I was thinking to use the stdout for front-end.
What do you think about this?
3. When using the default DRFA appender (Daily Rolling File Appender) in
nutch, should I log in the the hadoop log file or in a nutch file?

Thanks for your feed-back.

Jérôme

--
http://motrech.free.fr/
http://www.frutch.org/