def set_logging(self, log_level=logging.ERROR, file_path_name=None):
        self.log = get_logger(log_level, file_path_name)
This function allows to change the logging backend, either output or file as backend
dataset/ETHPy150Open kootenpv/yagmail/yagmail/yagmail.py/SMTP.set_logging