def emit(self, record):
try:<EOL><INDENT>msg = self.format(record)<EOL>level = _STORM_LOG_LEVELS.get(record.levelname.lower(), _STORM_LOG_INFO)<EOL>self.serializer.send_message(<EOL>{"<STR_LIT>": "<STR_LIT>", "<STR_LIT>": str(msg), "<STR_LIT>": level}<EOL>)<EOL><DEDENT>except Exception:<EOL><INDENT>self.handleError(record)<EOL><DEDENT>
Emit a record.

If a formatter is specified, it is used to format the record.
If exception information is present, it is formatted using
traceback.print_exception and sent to Storm.