code: public static void registerLog(LogController controller) throws UnsupportedLocaleException {
  
          // When the first LogController registers, do one-time initialization
          forceInit(Library.class);
  
          String locale = Library.getLocale();
  
          // Set the locale on the controller
          if (controller.isLocaleSupported(locale)) {
              controller.setLocale(locale);
  
              // Fail if the controller does not support this locale
          } else {
              System.err.println("Locale \"" + locale + "\" is not supported by log controller: " + controller);
              throw new UnsupportedLocaleException(locale);
          }
  
          // Add it to the list of registered controllers
          if (CONTROLLERS == null) {
              CONTROLLERS = new LogController[] { controller };
          } else {
              int size = CONTROLLERS.length;
              LogController[] temp = new LogController[size + 1];
              System.arraycopy(CONTROLLERS, 0, temp, 0, size);
              temp[size] = controller;
              CONTROLLERS = temp;
          }
      }
docs: Registers the specified <code>LogController</code>, which represents a <em>logdoc</em> <code>Log</code> class.
  
  @param controller
  the {@link LogController}, cannot be <code>null</code>.
  @throws UnsupportedLocaleException
  if {@link LogController} does not support the current Locale.