parameters: (self, adb, clear=True, filter_specs=None, output_file=None)
docstring: Create a LogcatMonitor instance.
  
      Args:
        adb: An instance of adb_wrapper.AdbWrapper.
        clear: If True, clear the logcat when monitoring starts.
        filter_specs: An optional list of '<tag>[:priority]' strings.
        output_file: File path to save recorded logcat.
docstring_summary: Create a LogcatMonitor instance.
docstring_tokens: Create a LogcatMonitor instance .
function: def __init__(self, adb, clear=True, filter_specs=None, output_file=None):
      """Create a LogcatMonitor instance.
  
      Args:
        adb: An instance of adb_wrapper.AdbWrapper.
        clear: If True, clear the logcat when monitoring starts.
        filter_specs: An optional list of '<tag>[:priority]' strings.
        output_file: File path to save recorded logcat.
      """
      if isinstance(adb, adb_wrapper.AdbWrapper):
        self._adb = adb
      else:
        raise ValueError('Unsupported type passed for argument "device"')
      self._clear = clear
      self._filter_specs = filter_specs
      self._output_file = output_file
      self._record_file = None
      self._record_file_lock = threading.Lock()
      self._record_thread = None
      self._stop_recording_event = threading.Event()
function_tokens: def __init__ ( self , adb , clear = True , filter_specs = None , output_file = None ) : if isinstance ( adb , adb_wrapper . AdbWrapper ) : self . _adb = adb else : raise ValueError ( 'Unsupported type passed for argument "device"' ) self . _clear = clear self . _filter_specs = filter_specs self . _output_file = output_file self . _record_file = None self . _record_file_lock = threading . Lock ( ) self . _record_thread = None self . _stop_recording_event = threading . Event ( )