parameters: (self, record)
docstring: Emit a record.
  
          If the stream was not opened because 'delay' was specified in the
          constructor, open it before calling the superclass's emit.
docstring_summary: Emit a record.
docstring_tokens: Emit a record .
function: def emit(self, record):
          """
          Emit a record.
  
          If the stream was not opened because 'delay' was specified in the
          constructor, open it before calling the superclass's emit.
          """
          if self.stream is None:
              self.stream = self._open()
          StreamHandler.emit(self, record)
function_tokens: def emit ( self , record ) : if self . stream is None : self . stream = self . _open ( ) StreamHandler . emit ( self , record )