private void buildMap() {
        int len = mapBuf.capacity();
        int startOfLine = controlFileHeaderLength;

        int numLine = 1;
        int i = 0;
        while (i < len) {
            if (mapBuf.get(i) == '\n') {
                startOfLine = ++i;
                ++numLine;
            } else if (i < controlFileHeaderLength) {
                ++i;
            } else if (mapBuf.get(i) == ':') {
                int endOfName = i;
                int levels = i;
                levels += 2;
                while ((levels % 4) != 0) {
                    levels++;
                }
                int endLine = levels + 4*numLevels;

                if (checkLine(startOfLine, endOfName, levels, endLine)) {
                    int l = endOfName - startOfLine;
                    if (l > 1 && mapBuf.get(startOfLine) == '.') {
                        ++startOfLine;
                        --l;
                    }
                    byte[] namebytes = new byte[l];
                    for (int j = 0; j < l; j++) {
                        namebytes[j] = mapBuf.get(startOfLine + j);
                    }
                    String name = Utf8.toString(namebytes);
                    if (name.equals("default")) {
                        name = "";
                    }
                    MappedLevelController ctrl = new MappedLevelController(mapBuf, levels, name);
                    levelControllerMap.put(name, ctrl);
                    i = endLine;
                    continue; // good line
                }
                // bad line, skip
                while (i < len && mapBuf.get(i) != '\n') {
                    i++;
                }
                int bll = i - startOfLine;
                byte[] badline = new byte[bll];
                for (int j = 0; j < bll; j++) {
                    badline[j] = mapBuf.get(startOfLine + j);
                }
                System.err.println("bad loglevel line "+numLine+" in "
                                   + logControlFilename + ": " + Utf8.toString(badline));
            } else {
                i++;
            }
        }
    }
Contains a repository of mapped log level controllers.

@author Ulf Lilleengen
@since 5.1
Should only be used internally in the log library
vespalog/src/main/java/com/yahoo/log/MappedLevelControllerRepo.java