You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Raj Chidara <ra...@ddismart.com> on 2023/08/02 07:58:43 UTC
Change log file directory
Hello
Currently, whenever we run bin/crawl, the generated log is stored in logs folder of Nutch. Can we change this behavior so that I can store log file in my own folder say /root/mylog/nutchlog.txt. Please suggest.
Thanks and Regards
Raj Chidara
Re: Change log file directory
Posted by Raj Chidara <ra...@ddismart.com>.
Thanks Sebastian. It worked
Thanks and Regards
Raj Chidara
---- On Mon, 07 Aug 2023 15:45:54 +0530 Sebastian Nagel <wa...@googlemail.com.INVALID> wrote ---
Hi,
yes, this is possible by pointing the environment variable
NUTCH_LOG_DIR to a different folder.
The default is: $NUTCH_HOME/logs/
See also the script bin/nutch which is called by bin/crawl:
https://github.com/apache/nutch/blob/master/src/bin/nutch#L30
(it's also possible to change the log file name)
Best,
Sebastian
On 8/2/23 09:58, Raj Chidara wrote:
> Hello
> Currently, whenever we run bin/crawl, the generated log is stored in logs folder of Nutch. Can we change this behavior so that I can store log file in my own folder say /root/mylog/nutchlog.txt. Please suggest.
>
>
>
>
> Thanks and Regards
>
> Raj Chidara
Re: Change log file directory
Posted by Sebastian Nagel <wa...@googlemail.com.INVALID>.
Hi,
yes, this is possible by pointing the environment variable
NUTCH_LOG_DIR to a different folder.
The default is: $NUTCH_HOME/logs/
See also the script bin/nutch which is called by bin/crawl:
https://github.com/apache/nutch/blob/master/src/bin/nutch#L30
(it's also possible to change the log file name)
Best,
Sebastian
On 8/2/23 09:58, Raj Chidara wrote:
> Hello
> Currently, whenever we run bin/crawl, the generated log is stored in logs folder of Nutch. Can we change this behavior so that I can store log file in my own folder say /root/mylog/nutchlog.txt. Please suggest.
>
>
>
>
> Thanks and Regards
>
> Raj Chidara