def __init__(self, config):
        """ just log that we tried to deliver. """
        self.logs = logging.getLogger(__name__)
        self.logs.setLevel(logging.DEBUG)
        log = logging.StreamHandler(sys.stdout)
        log.setLevel(logging.DEBUG)
        formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
        log.setFormatter(formatter)
        self.logs.addHandler(log)
def __init__ ( self , config ) : self . logs = logging . getLogger ( __name__ ) self . logs . setLevel ( logging . DEBUG ) log = logging . StreamHandler ( sys . stdout ) log . setLevel ( logging . DEBUG ) formatter = logging . Formatter ( '%(asctime)s - %(name)s - %(levelname)s - %(message)s' ) log . setFormatter ( formatter ) self . logs . addHandler ( log )
just log that we tried to deliver.