jamesturk / spatula

A modern Python library for writing maintainable web scrapers.
https://jamesturk.github.io/spatula/
MIT License
244 stars 11 forks source link

Add (or document) logging #2

Closed mileswwatkins closed 6 years ago

mileswwatkins commented 6 years ago

It'd be helpful to know how to integrate with multi-level logging via self.…. I can't find any examples of logging in the ~6 Spatula–Pupa modules in Open States at the moment.

jamesturk commented 6 years ago

Going to consider this out of scope, spatula is just a way to write scrapers, the existing logging mechanisms (import logging) work fine w/ it.

I think the confusion comes b/c scrapelib exposes logging, which a lot of the scrapers then use- that's still possible but is a scrapelib feature for weird legacy reasons (it being pulled out of the originally openstates repo), not something a library should provide.