"""Console provider: logs the notification instead of sending it anywhere. Used in local dev fallback and wherever a destination type isn't yet wired to a real transport.""" from __future__ import annotations from app.core.logging import get_logger from app.notifications.base import DeliveryResult, NotificationMessage logger = get_logger(__name__) class ConsoleProvider: provider_name = "console" async def send(self, message: NotificationMessage) -> DeliveryResult: logger.info( "console_notification", destination=message.destination_value, subject=message.subject, body=message.body_text, ) return DeliveryResult(success=True)