"""
Download all the data.
"""
import logging
import census_data_downloader


def main():
    # Configure logging
    logger = logging.getLogger('census_data_downloader')
    logger.setLevel(logging.DEBUG)
    ch = logging.StreamHandler()
    ch.setLevel(logging.DEBUG)
    formatter = logging.Formatter('%(asctime)s|%(name)s|%(levelname)s|%(message)s')
    ch.setFormatter(formatter)
    logger.addHandler(ch)
    # Download em all
    census_data_downloader.download_everything(data_dir="./data")


if __name__ == '__main__':
    main()
