or to store log in a separate file:
scrapy crawl myspider --logfile=myspider.log
On Wed, Aug 31, 2011 at 08:27:50AM -0700, klaus wrote:
> Hi all,
> how i can run a scrapy project without log? When i run the project with
> command *scrapy crawl myproject* it print all item and all degub log.
>
> Thank you so much
>
> --
> You received this message because you are subscribed to the Google Groups "scrapy-users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/scrapy-users/-/lPsZ3ymjPyUJ.
> To post to this group, send email to scrapy...@googlegroups.com.
> To unsubscribe from this group, send email to scrapy-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/scrapy-users?hl=en.
>
You can override the LOG_FORMATTER setting to not display the whole
item content.
Other option is to use LOG_LEVEL=INFO and log your messages with level=INFO
Regards
~Rolando
from command line? in the settings? when logging a message?
in settings you should use LOG_LEVEL="INFO"
when logging messages you should do:
from scrapy import log
log.msg("foo", level=log.INFO)
# in a spider's method
self.log("foo", level=log.INFO)
Regards
~Rolando
Which scrapy version are you using? In latest version the scraped item print
has been moved to debug instead info level.
If you get the item printed in info level, changing the log level to
warning would work for you?
~Rolando
> --
> You received this message because you are subscribed to the Google Groups
> "scrapy-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/scrapy-users/-/rqQbkSigH0gJ.