'Emit a record.
If the stream was not opened because \'delay\' was specified in the
constructor, open it before calling the superclass\'s emit.'

def emit(self, record):

    if (self.stream is None):
        self.stream = self._open()
    StreamHandler.emit(self, record)
    return
