'''
last editted: 2021-04-23
version: 0.1.0
'''
from market_place_cli.main_logic import start
import logging
from configparser import ConfigParser

def main():
    config = ConfigParser()
    config.read("./config/log.config", encoding="UTF-8")
    logging.basicConfig(filename=f'{config["log"]["log_dir"]}{config["log"]["filename"]}',
                        level=logging.DEBUG,
                        format=config["log"]["LOG_FORMAT"],
                        datefmt=config["log"]["DATE_FORMAT"],
                        )
    start()

if __name__ == '__main__':
    main()
