image_search icon indicating copy to clipboard operation
image_search copied to clipboard

Improve Logging Method w/ Google and Bing Images

Open rushilsrivastava opened this issue 6 years ago • 2 comments

I would like to have a standard output method for both Google and Bing images. All help would be appreciated.

rushilsrivastava avatar Mar 11 '18 03:03 rushilsrivastava

Be more specific.

Categorized by level of verbosity or something entirely organized like info.log, error.log ?

I had this functionality in an old commit by switching up the error handler to handle warnings and fatal errors with an applicable logger hook, if this is a thing i can include info and alert in the flags and make my version configurable by command line switch --loglevel

loopyd avatar Mar 21 '18 22:03 loopyd

@loopyd Yes, that could be one approach.

At the end of the day, I just want a standard way to log that is consistent between both scrapers and looks "nice". At the current state, the script outputs more than necessary, and a channel system might be more efficient. Anyhow, if you have something, feel free to send a PR.

rushilsrivastava avatar Jun 20 '18 18:06 rushilsrivastava