code: def write(self, text):
          
          self.logger.log(self.loglevel, text, extra={'terminator': None})
docs: Write text. An additional attribute terminator with a value of
             None is added to the logging record to indicate that StreamHandler
             should not add a newline.