CriticalLogMiddleware
faststream.broker.middlewares.logging.CriticalLogMiddleware #
Bases: BaseMiddleware
A middleware class for logging critical errors.
Initialize the class.
Source code in faststream/broker/middlewares/logging.py
on_receive async #
after_consume async #
A function to handle the result of consuming a resource asynchronously.
consume_scope async #
Asynchronously consumes a message and returns an asynchronous iterator of decoded messages.
Source code in faststream/broker/middlewares/base.py
on_publish async #
after_publish async #
publish_scope async #
Publish a message and return an async iterator.
Source code in faststream/broker/middlewares/base.py
on_consume async #
Source code in faststream/broker/middlewares/logging.py
after_processed async #
Asynchronously called after processing.