def setup_prefix_logging(logdir):
if not os.path.exists(logdir):<EOL><INDENT>os.mkdir(logdir)<EOL><DEDENT>file_handler = logging.FileHandler(<EOL>filename=os.path.join(logdir, '<STR_LIT>'),<EOL>)<EOL>file_formatter = get_default_log_formatter()<EOL>file_handler.setFormatter(file_formatter)<EOL>logging.root.addHandler(file_handler)<EOL>hide_paramiko_logs()<EOL>hide_stevedore_logs()<EOL>
Sets up a file logger that will create a log in the given logdir (usually a
lago prefix)

Args:
    logdir (str): path to create the log into, will be created if it does
        not exist

Returns:
    None