postmodern / spidr

A versatile Ruby web spidering library that can spider a site, multiple domains, certain links or infinitely. Spidr is designed to be fast and easy to use.
MIT License
800 stars 109 forks source link

Add Logging #72

Open postmodern opened 4 years ago

postmodern commented 4 years ago

Add optional Logging/debug output to Spidr::Agent. Agent#initialize should accept a logger option for passing in custom Logger compatible objects. It should also support a logging: true|false option, which initializes @logger to a new Logger instance.