code: def logBranch(self, indent=0, level=logging.DEBUG):
          
          if 0:
              print(indent * "    " + str(self))
          else:
              logger.log(level, indent * "    " + str(self))
          for childItems in self.childItems:
              childItems.logBranch(indent + 1, level=level)
docs: Logs the item and all descendants, one line per child