def emit(self, record):
if getattr(this, '<STR_LIT>', {}).get(LOGS_NAME, False):<EOL><INDENT>self.format(record)<EOL>this.send({<EOL>'<STR_LIT>': ADDED,<EOL>'<STR_LIT>': LOGS_NAME,<EOL>'<STR_LIT:id>': meteor_random_id('<STR_LIT>' % LOGS_NAME),<EOL>'<STR_LIT>': {<EOL>attr: {<EOL>'<STR_LIT:args>': lambda args: [repr(arg) for arg in args],<EOL>'<STR_LIT>': datetime.datetime.fromtimestamp,<EOL>'<STR_LIT>': stacklines_or_none,<EOL>}.get(<EOL>attr,<EOL>lambda val: val  <EOL>)(getattr(record, attr, None))<EOL>for attr in (<EOL>'<STR_LIT:args>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT:filename>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT:message>',<EOL>'<STR_LIT:name>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>)<EOL>},<EOL>})<EOL><DEDENT>
Emit a formatted log record via DDP.