code: public static void addLoggerToGroup(Logger logger, String group) {
          if (logger == null)
              throw new NullPointerException("logger");
          if (group == null)
              throw new NullPointerException("group");
          if (!(logger instanceof WsLogger))
              throw new IllegalArgumentException("logger");
  
          WsLogger wsLogger = (WsLogger) logger;
          wsLogger.addGroup(group);
      }
docs: Adds the logger to the specific group. This is useful for code that needs
  to run in environments with and without RAS. In an environment without
  RAS, Logger.getLogger must be used, and addLoggerToGroup can be invoked
  reflectively when available. For example:
  
  <pre>
  private static Logger getLogger(Class&lt;?> c, String group) {
  &#32;&#32;Logger logger = Logger.getLogger(c.getName());
  &#32;&#32;try {
  &#32;&#32;&#32;&#32;Class.forName("com.ibm.ws.logging.LoggerHelper")
  &#32;&#32;&#32;&#32;&#32;&#32;.getMethod("addLoggerToGroup", Logger.class, String.class)
  &#32;&#32;&#32;&#32;&#32;&#32;.invoke(logger, group);
  &#32;&#32;} catch (Exception e) {
  &#32;&#32;&#32;&#32;// Ignored.
  &#32;&#32;}
  &#32;&#32;return logger;
  }
  </pre>
  
  @param logger the logger
  @param group the group
  @throws NullPointerException if logger or group are null
  @throws IllegalArgumentException if logger does not support dynamically added groups