Source code for bi_etl.notifiers.log_notifier

from typing import Optional

from bi_etl.notifiers.notifier_base import NotifierBase


[docs] class LogNotifier(NotifierBase):
[docs] def __init__(self, *, name: Optional[str] = None): super().__init__(name=name)
[docs] def send(self, subject, message, sensitive_message=None, attachment=None, throw_exception=False): if subject is not None: self.log.info(subject) if message is not None: self.log.info(message)