[Python-Dev] Proposed additional keyword argument in logging calls
Vinay Sajip
vinay_sajip at yahoo.co.uk
Sun Dec 4 23:39:32 CET 2005
Skip,
Thanks for the detailed post indicating what stuff you find useful, and what
stuff you don't need. It seems that your use case is fairly unusual, so I
completely understand that you have optimized how you use logging. I will
consider how to try to incorporate your feedback without breaking backwards
compatibility, but it will probably not be via the 'extra' mechanism I proposed.
For example, to avoid thread and process computation, I could introduce
module-level variables eg. log_threads and log_processes, both set to true to
maintain backwards compatibility, but settable to false to avoid expensive
thread and process computations where not needed. The 'extra' mechanism will
remain to provide additional diagnostic information where e.g. the same code is
executed by multiple threads and there is a need to distinguish the different
threads in the logging output.
Regards,
Vinay Sajip
More information about the Python-Dev
mailing list