Log handling in gettor
Log generation should be refactored in gettor in order to be able to debug errors and generate statistics.
The following tasks should be implemented:
Use log levels: not everything should be logged all the times.
Use the log to generate simple statistics about service usage.
Use logrotation to store logs in a format that can be exported and parsed easily by another service.
Related to https://trac.torproject.org/projects/tor/ticket/28339