parameters: (self)
docstring: Clear the log records.
docstring_summary: Clear the log records.
docstring_tokens: Clear the log records .
function: def flush(self):
          """Clear the log records."""
          self.acquire()
          try:
              self.logs = []
          finally:
              self.release()
function_tokens: def flush ( self ) : self . acquire ( ) try : self . logs = [ ] finally : self . release ( )