code: function setLogger(name, level, appenderNames) {
      try {
          var logger = getLogger(name);
          logger.setLevel(level);
          if (appenderNames) {
              logger.clearAppenders();
              appenderNames.forEach(function (name) {
                  logger.addAppender(name);
              });
          }
  
          return logger;
      } catch (err) {
          err.message += formatText(' - Logger %b definition error', name);
          throw err;
      }
  }
docs: if appenderNames are not provided, the rootLogger appender will be used.