Message271646
A while ago I was debugging through code that uses the `logging` module, and I was looking at `Logger` objects and possibly other kinds of objects (maybe handlers? It was a while ago.)
I was frustrated because I was trying to figure out what a particular logger was, but typing `logger` in the shell just showed the opaque `<logging.Logger object at 0x0000000002293550>`. I would like to know the name of the logger without bothering to do `logger.name`.
I suggest that we do a run over the `logging` module and see which classes could have a helpful `__repr__` added to them. I might have time to do this, but first I want to know whether there is a general agreement that such a patch would be welcome. |
|
Date |
User |
Action |
Args |
2016-07-29 20:09:25 | cool-RR | set | recipients:
+ cool-RR, vinay.sajip |
2016-07-29 20:09:25 | cool-RR | set | messageid: <1469822965.14.0.109412472968.issue27650@psf.upfronthosting.co.za> |
2016-07-29 20:09:25 | cool-RR | link | issue27650 messages |
2016-07-29 20:09:24 | cool-RR | create | |
|