import logging
class LoggerHelper:
    def __init__(self):
        pass

    def info(self,message):
        logging.basicConfig(level=logging.INFO)
        logger = logging.getLogger(__name__)
        logger.info(message)

    def debug(self,message):
        logging.basicConfig(level=logging.DEBUG)
        logger = logging.getLogger("log")
        logger.info(message)

    # return logger


if __name__ == '__main__':
    l=LoggerHelper()
    l.info("google")
    l.debug("debug")




# logger.info('Start reading database')
# # read database here
# records = {'john': 55, 'tom': 66}
# logger.debug('Records: %s', records)
# logger.info('Updating records ...')
# # update records here
# logger.info('Finish updating records')
