Actions
Bug #3229
closedKeep logging improvements
Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
Keep
Target version:
-
Start date:
07/11/2014
Due date:
% Done:
0%
Estimated time:
Story points:
-
Description
Each request received by Keep should be logged to a file specified by the
--log
option. Following Apache logging conventions, each request should be written to a single line with:
- the request IP address
- OAuth token
- timestamp
- URL method and path
- HTTP response code
e.g.
208.90.57.196 - 2014-07-08 13:14:15 GET /d41d8cd98f00b204e9800998ecf8427e+0 403
For diagnostics, Keep should log messages to a file specified by the --error_log
option.
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.
Updated by Tom Clegg over 10 years ago
- Target version deleted (
2014-08-06 Sprint)
Actions