def METHOD_NAME(self, record):
    record.ls_level = CUSTOM_LEVEL_NAMES.get(record.levelno, record.levelname)
    record.ls_name = self._get_compressed_logger_name(record.name)
    record.ls_thread = record.threadName[-self.max_thread_len :]
    return True