Not quite sure what you mean by “one stream of failures,” but if “failure” means that the exception extends up to the top function of the stream, then you can wrap each top function of the stream (for example, in the decorator) to catch any exception, register everything you wish and re-raise. The module loggingmust ensure the security of logging action flows without the additional precautions required by you.
source
share