code: public static synchronized boolean addLogger(@NonNull JobLogger logger) {
          for (JobLogger printer1 : loggers) {
              if (logger.equals(printer1)) {
                  return false;
              }
          }
  
          for (int i = 0; i < loggers.length; i++) {
              if (loggers[i] == null) {
                  loggers[i] = logger;
                  return true;
              }
          }
  
          int index = loggers.length;
          loggers = Arrays.copyOf(loggers, loggers.length + 2);
          loggers[index] = logger;
          return true;
      }
docs: Add a global logger for the job library, which will be notified about each log statement.
  
  @param logger Your desired logger.
  @return {@code true} if the logger was added. Returns {@code false} if the logger was
  already added.