def METHOD_NAME(self, record):
    """
    Overwritten to return a dictionary of the relevant LogRecord attributes instead of a string.
    KeyError is raised if an unknown attribute is provided in the fmt_dict.
    """
    return {fmt_key: record.__dict__[fmt_val] for fmt_key, fmt_val in self.fmt_dict.items()}