[issue23597] Allow easy display of local variables in log messages?

2021-10-29 Thread Martin
Martin added the comment: In this pull request[1] I introduced a `format_locals` which can be provided to customize the serialization of the local variables of each frame. This could be used to filter out variables with certain names, for example. In this context, you could use a certain

[issue23597] Allow easy display of local variables in log messages?

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: See also 43656. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23597] Allow easy display of local variables in log messages?

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- type: -> enhancement versions: +Python 3.11 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue23597] Allow easy display of local variables in log messages?

2015-08-25 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23597 ___ ___ Python-bugs-list

[issue23597] Allow easy display of local variables in log messages?

2015-03-05 Thread Nick Coghlan
New submission from Nick Coghlan: Issue #22936 added support for easily displaying local variables in tracebacks to the unittest and traceback modules. Would it be worth also making this capability readily available in the logging APIs that display traceback messages? The main argument

[issue23597] Allow easy display of local variables in log messages?

2015-03-05 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- dependencies: +traceback module has no way to show locals ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23597 ___

[issue23597] Allow easy display of local variables in log messages?

2015-03-05 Thread Robert Collins
Robert Collins added the comment: Yes, for debugging etc this can be very useful. I suggest further extending the new traceback interface to allow a filtering/transform hook of some sort, to allow folk more granular control than just repr overloading. -- nosy: +rbcollins