public static String getClassNamePrefix(String className, int layer) {
        int index = 0;
        for (int i = 0; i < layer; i++) {
            int newIndex = className.indexOf('.', index + 1);
            if (newIndex <= 0) {
                break;
            }
            index = newIndex;
        }
        if (index == 0) {
            return "Inlong";
        }
        String namePrefix = className.substring(0, index);
        return namePrefix;
    }
getClassNamePrefix

@param  className
@param  layer
@return
inlong-sort-standalone/sort-standalone-common/src/main/java/org/apache/inlong/sort/standalone/utils/InlongLoggerFactory.java