import logging
import os


APP_NAME = "app"
DATA_DIRECTORY = "data"
CURRENT_YEAR = 2020

GAMES_DIRECTORY = os.path.join(DATA_DIRECTORY, "games")
PLAY_BY_PLAY_DIRECTORY = os.path.join(DATA_DIRECTORY, "play_by_play")
ROSTER_DIRECTORY = os.path.join(DATA_DIRECTORY, "roster")

DERIVED_DATA_DIRECTORY = os.path.join(DATA_DIRECTORY, 'derived')


def configure_logging():
    logging.basicConfig(
        level=logging.INFO,
        format='%(asctime)s -  %(levelname)s - {%(filename)s:%(lineno)d} - %(message)s',
        datefmt='%Y-%m-%d %H:%M:%S'
    )
