def METHOD_NAME(self, record):
    mitogen_name = getattr(record, 'mitogen_name', '')
    if mitogen_name == 'stderr':
        record.levelno = logging.ERROR
    if mitogen_name in self.NOISY_LOGGERS and record.levelno >= logging.WARNING:
        record.levelno = logging.DEBUG
    if _process_pid == os.getpid():
        process_name = _process_name
    else:
        process_name = '?'
    s = '[%-4s %d] %s' % (process_name, os.getpid(), self.format(record))
    if record.levelno >= logging.ERROR:
        display.error(s, wrap_text=False)
    elif record.levelno >= logging.WARNING:
        display.warning(s, formatted=True)
    else:
        self.normal_method(s)