import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s [%(levelname)s] %(message)s, %(module)s:%(lineno)d', datefmt='%Y/%m/%d %H:%M:%S') LOG = logging.getLogger(__name__)