code: public synchronized void log(String moduleName, Action action, boolean ok) {
  
          if (moduleName == null) {
              return;
          }
          SimpleDateFormat format = new SimpleDateFormat(DATE_FORMAT_STRING);
          String now = format.format(new Date());
          String message = now + " " + action.getPrintName() + " " + (ok ? "0" : "1");
          log(moduleName, message);
      }
docs: Logs a module action.<p>
  
  @param moduleName the module name
  @param action the action
  @param ok true if the action was successful