from .api import *

import sys
import logging
import warnings

logging.basicConfig(
    format="%(asctime)s - %(levelname)s - %(message)s"
)

logger = logging.getLogger(__name__)

if sys.version_info[0] < 3 or sys.version_info[1] < 5:
    logger.warning(str(sys.version_info))
    warnings.warn("Python 3.5 or later is required.")

from .api import *

import sys
import logging
import warnings

logging.basicConfig(
    filename='vlgp.log',
    filemode='a',
    format="%(asctime)s - %(levelname)s - %(message)s",
    level=logging.INFO
)

logger = logging.getLogger(__name__)

if sys.version_info[0] < 3 or sys.version_info[1] < 5:
    logger.warning(str(sys.version_info))
    warnings.warn("Python 3.5 or later is required.")

change log to file