Skip to content

Logger

LoggerProtocol #

Bases: Protocol

Protocol that defines the logger interface for type checking.

RapidataLogger #

RapidataLogger(name: str = 'rapidata')

Logger implementation that updates when the configuration changes.

Source code in src/rapidata/rapidata_client/config/logger.py
def __init__(self, name: str = "rapidata"):
    self._logger = logging.getLogger(name)
    self._otlp_initialized = False
    self._otlp_handler = None

    # Register this logger to receive configuration updates
    register_config_handler(self._handle_config_update)