public static <T extends Enum<?>> String enumToString(T x) {
    return x.getClass().getSimpleName() + "." + x.name();
  }
Call this function to print a line in log.

@param x Any enum member
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/KillPoint/KillPoint.java