Closed truemped closed 11 years ago
In addition, I propose to make use of the additional keyword argument when raising Error, Ok or OkCreated, so that supercell logs the additional information provided.
Logging of additional
keywords to Error
, Ok
and such has been fixed in a480fea
Logging should be standardized within supercell. The idea is that the user should only provide a base log file name that will be used for configuring the rotating file handler. It would also be great, if the requests are identifiable inside the logs, i.e. they should get some kind of request id.
The user should then be allowed to access the logs everywhere maybe using
self.log()
, whereself
is the request handler. Logging through this should then also add some more data like the request id.All other uncaught exceptions should also be logged in order to provide some nicer insights for debugging or testing these errors.