DedSecInside / gotor

This program provides efficient web scraping services for Tor and non-Tor sites. The program has both a CLI and REST API.
GNU General Public License v3.0
158 stars 44 forks source link

Add logging #35

Closed KingAkeem closed 1 year ago

KingAkeem commented 1 year ago

There was minimal to no logging previously. I've added zap as the supporting logging framework and an internal library to handle setting it up. The purpose of the logs are to improve clarity for the server, debug various operation issues, spot potential areas for improvements in efficiency and find bugs.

Most of the internal logs are set to debug while the API logs are info level. This is too avoid clutter since there can be many internal operations happening at once due to concurrency.