Message313162
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 need.
You haven't really explained why you need this to work in this particular way, so I suspect it could be an XY problem. |
|
| Date |
User |
Action |
Args |
| 2018-03-02 20:45:33 | vinay.sajip | set | recipients:
+ vinay.sajip, matrixise, mcoolive |
| 2018-03-02 20:45:33 | vinay.sajip | set | messageid: <1520023533.15.0.467229070634.issue32732@psf.upfronthosting.co.za> |
| 2018-03-02 20:45:33 | vinay.sajip | link | issue32732 messages |
| 2018-03-02 20:45:33 | vinay.sajip | create | |
|