code: def init_watcher(self):
      try:
          self.watcher = LogWatcher(parent=self, log=self.log)
      except:
          self.log.error("Couldn't start the LogWatcher", exc_info=True)
          self.exit(1)
      self.log.info(
          "Listening for log messages on %r" % self.watcher.url
      )
  
file_path: ipyparallel/ipyparallel/apps/iploggerapp.py
imports: from IPython.core.profiledir import ProfileDir
  from traitlets import Dict
  from ipyparallel.apps.baseapp import BaseParallelApplication, base_aliases, catch_config_error
  from ipyparallel.apps.logwatcher import LogWatcher
label_desc: Use image node_id 2 for calling the IPLoggerApp obj's underlying member method code with example usage: obj.init_watcher() without return types