'Set the output format for the class instance.'

def set_output_format(self, format):

    try:
        self.serializer = self.output_formats[format.lower()]
    except KeyError:
        message(CRITICAL, ('Invalid    Output    Format:    "%s".    Use    one    of    %s.' % (format, self.output_formats.keys())))
