KafkaLoggingMixin
faststream.kafka.shared.logging.KafkaLoggingMixin #
KafkaLoggingMixin(
*args: Any,
logger: Optional[Logger] = access_logger,
log_level: int = logging.INFO,
log_fmt: Optional[str] = None,
**kwargs: Any
)
Bases: LoggingMixin
A class that provides logging functionality for Kafka.
METHOD | DESCRIPTION |
---|---|
__init__ | initializes the KafkaLoggingMixin object |
_get_log_context | returns the log context for a given message and topics |
fmt | returns the log format string |
_setup_log_context | sets up the log context for a given list of topics |
Initialize the class.
PARAMETER | DESCRIPTION |
---|---|
*args | Variable length argument list TYPE: |
logger | Optional logger object |
log_level | Log level (default: logging.INFO) |
log_fmt | Optional log format string |
**kwargs | Arbitrary keyword arguments TYPE: |
RETURNS | DESCRIPTION |
---|---|
None | None |