code: public Log[] getChildren() {
          Collection copy;
  
          synchronized (mChildren) {
              copy = new ArrayList(mChildren.size());
              Iterator it = mChildren.iterator();
              while (it.hasNext()) {
                  Log child = (Log)((WeakReference)it.next()).get();
                  if (child == null) {
                      it.remove();
                  }
                  else {
                      copy.add(child);
                  }
              }
          }
  
          return (Log[])copy.toArray(new Log[copy.size()]);
      }
docs: Returns a copy of the children Logs.