code: function findLoggerParent(logger) {
      if (rootLogger === logger) {
          return null;
      }
      var deep = true;
  
      var hierachy = getHierarchy(logger.name);
      var parent;
      for (var n = hierachy.length - 1; n >= 0 && !parent; n--) {
          parent = _.find(loggers, { name: hierachy[n] })
      }
      return parent || rootLogger;
  
  }
docs: Check the logger name and find out if there is any defined parent loggers