Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment:
The existing LoggerAdapter functionality has been around since Jan 2008, and it
seems that no one in that time has raised this as a must-have. In summary:
1. If you want to pass different kwargs in every time, use a logger.
2. If you want to pass particular contextual information in which fits the
"extra" parameter approach, use a LoggerAdapter.
3. If that doesn't do it for you, subclass LoggerAdapter and implement what you
You haven't really explained why you need this to work in this particular way,
so I suspect it could be an XY problem.
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list