def METHOD_NAME(self, record: logging.LogRecord) -> str:
    try:
        record.message = record.getMessage()
    except Exception as e:
        record.message = f"Bad message ({e!r}): {record.__dict__!r}"
    date_format = "%H:%m:%S"
    formatting = self.converter(record.created)  # type:ignore
    record.asctime = time.strftime(date_format, formatting)
    prefix = self.template(record) % record.__dict__
    parts = prefix.split(record.message)
    formatted = prefix + " " + record.message
    return formatted.replace("\n", "\n" + parts[0] + " ")