original_docstring: 
          Write logs in buffer to wherever the normal logging would go
          
docstring: Write logs in buffer to wherever the normal logging would go
docstring_tokens: Write logs in buffer to wherever the normal logging would go
code: def flush(self):
          """
          Write logs in buffer to wherever the normal logging would go
          """
          if not self._buffer:
              newbuffer = []
          else:
              newbuffer = list(self._buffer)
  
          self._buffer = []
  
          for msg in newbuffer:
              try:
                  yield threads.deferToThread(
                      super(self.__class__, self).log, *msg)
  
              except Exception as e:
                  log('FILE LOGGING FAILED - log: %s excepton: %s' % (log, e))
                  self._buffer.append(msg)
code_tokens: def flush ( self ) : if not self . _buffer : newbuffer = [ ] else : newbuffer = list ( self . _buffer ) self . _buffer = [ ] for msg in newbuffer : try : yield threads . deferToThread ( super ( self . __class__ , self ) . log , * msg ) except Exception as e : log ( 'FILE LOGGING FAILED - log: %s excepton: %s' % ( log , e ) ) self . _buffer . append ( msg )
short_docstring: Write logs in buffer to wherever the normal logging would go
short_docstring_tokens: Write logs in buffer to wherever the normal logging would go
comment: """
          Write logs in buffer to wherever the normal logging would go
          """