Message277823
A problem with switching to logging is the API design.
There are three functions, log_request(), log_error() and
log_message(). The former two call the latter. The API explicitly
encourages overriding log_message() to customize logging. But it has
no way to know whether it's called from log_error(), log_request(), or
directly.
So how is it to choose logging levels? I imagine log_request() should
log at the INFO level, log_error() at the ERROR level, and let's say
that direct calls to log_message() should also log at the INFO level
(from looking at the few calls). So how should log_error() distinguish
itself to log_message() without breaking apps that override the
latter? |
|
Date |
User |
Action |
Args |
2016-10-01 15:35:33 | gvanrossum | set | recipients:
+ gvanrossum, orsenthil, r.david.murray, Mariatta, grismar |
2016-10-01 15:35:33 | gvanrossum | link | issue28294 messages |
2016-10-01 15:35:33 | gvanrossum | create | |
|