Enable logging of lengthly operations (duration) #894
-
As it is not uncommon to want to log duration of actions that are likely to be time consuming it would be really nice if rich could provide some extensions that enable users to do so. The usually approach is to record the start time and include the computed duration after the action finished. Optionally some users decide to log both the start and the end of the action, but this makes the logging extra verbose. If we would be able to have a decorator or a context manager that we can easily use to implement this kind of logging it would be great. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Seems beyond the remit of Rich. There may be packages you could adapt to write to Rich, or roll your own in a dozen lines or so. |
Beta Was this translation helpful? Give feedback.
Seems beyond the remit of Rich. There may be packages you could adapt to write to Rich, or roll your own in a dozen lines or so.