Keep logging improvements
|Velocity based estimate||-|
--logoption. Following Apache logging conventions, each request should be written to a single line with:
- the request IP address
- OAuth token
- URL method and path
- HTTP response code
18.104.22.168 - 2014-07-08 13:14:15 GET /d41d8cd98f00b204e9800998ecf8427e+0 403
For diagnostics, Keep should log messages to a file specified by the
Keep should support log levels ERROR, WARN, INFO and DEBUG. The
--log_level option specifies the current log level. Any message at that level or higher should be written to the error log.
- Just use the log/syslog package
- Log each category to a different stream described in http://www.goinggo.net/2013/11/using-log-package-in-go.html. I haven't been able to decide on a configuration syntax for that and am not sure I see the value in having e.g. INFO and DEBUG going to completely separate streams anyway.