RabbitLoggingMixin
faststream.rabbit.shared.logging.RabbitLoggingMixin #
RabbitLoggingMixin(
*args: Any,
logger: Optional[logging.Logger] = access_logger,
log_level: int = logging.INFO,
log_fmt: Optional[str] = None,
**kwargs: Any
)
Bases: LoggingMixin
A class that extends the LoggingMixin class and adds additional functionality for logging RabbitMQ related information.
METHOD | DESCRIPTION |
---|---|
__init__ | Initializes the RabbitLoggingMixin object. |
_get_log_context | Overrides the _get_log_context method of the LoggingMixin class to include RabbitMQ related context information. |
fmt | Returns the log format string. |
_setup_log_context | Sets up the log context by updating the maximum lengths of the queue and exchange names. |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Initialize the class.
PARAMETER | DESCRIPTION |
---|---|
*args | Variable length argument list TYPE: |
logger | Optional logger object |
log_level | Logging level |
log_fmt | Optional log format |
**kwargs | Arbitrary keyword arguments TYPE: |
RETURNS | DESCRIPTION |
---|---|
None | None |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)