def write(self, message):
        """
        Do whatever it takes to actually log the specified logging record
        :param message: message to log
        """
        if not message.endswith("\n"):
            self._buffer += message
        else:
            self._buffer += message
            self.logger.log(self.level, self._buffer.rstrip())
            self._buffer = str()
def write ( self , message ) : if not message . endswith ( "\n" ) : self . _buffer += message else : self . _buffer += message self . logger . log ( self . level , self . _buffer . rstrip ( ) ) self . _buffer = str ( )
Do whatever it takes to actually log the specified logging record
        :param message: message to log