log_calls
log_calls copied to clipboard
decorating a program
It seems to me log_calls
moving logging code higher in the hierarchy of sw and I recently found out that you can decorate existing modules without changing a single line of them. It seems to me the next and final logical step would be to remove all logging code and have an api like trace python -m log_calls program.py
. Of course there would be a way to provide a configuration as well, modeled after the existing log_calls_settings
feature.