def get_logging_config(logging_dir):
    try:
        log_file = os.path.join(logging_dir, 'pynacea.log')
        if not os.path.exists(logging_dir):
            os.makedirs(logging_dir)
        if not os.path.exists(log_file):
            with open(log_file, 'w') as f:
                pass
        log_level = config.settings['logging level']
        if isinstance(log_level, str) and log_level.lower() in constants.LOGGING_LEVELS:
            log_level = constants.LOGGING_LEVELS[log_level.lower()]
        return log_file, int(log_level)
    except __HOLE__:
        return None, None
dataset/ETHPy150Open evfredericksen/pynacea/pynhost/pynhost/utilities.py/get_logging_config