def format(self, record):
if record.levelno == DEBUG:<EOL><INDENT>return self.debug_formatter.format(record)<EOL><DEDENT>if record.levelno == INFO:<EOL><INDENT>return self.info_formatter.format(record)<EOL><DEDENT>if record.levelno == ERROR:<EOL><INDENT>return self.error_formatter.format(record)<EOL><DEDENT>if record.levelno == WARNING:<EOL><INDENT>return self.warning_formatter.format(record)<EOL><DEDENT>if record.levelno == CRITICAL:<EOL><INDENT>return self.critical_formatter.format(record)<EOL><DEDENT>
Format the record using the corresponding formatter.