Skip to content

NatsLoggingMixin

faststream.nats.shared.logging.NatsLoggingMixin #

NatsLoggingMixin(
    *args: Any,
    logger: Optional[logging.Logger] = access_logger,
    log_level: int = logging.INFO,
    log_fmt: Optional[str] = None,
    **kwargs: Any
)

Bases: LoggingMixin

Source code in faststream/nats/shared/logging.py
def __init__(
    self,
    *args: Any,
    logger: Optional[logging.Logger] = access_logger,
    log_level: int = logging.INFO,
    log_fmt: Optional[str] = None,
    **kwargs: Any,
) -> None:
    super().__init__(
        *args,
        logger=logger,
        log_level=log_level,
        log_fmt=log_fmt,
        **kwargs,
    )
    self._max_queue_len = 0
    self._max_stream_len = 0
    self._max_subject_len = 4

fmt property #

fmt: str

log_level instance-attribute #

log_level = log_level

logger instance-attribute #

logger = logger

Last update: 2023-11-13