public void handleMethodInstruction()

in log4j-weaver/src/main/java/org/apache/logging/log4j/weaver/log4j2/LoggerConversionHandler.java [106:155]


    public void handleMethodInstruction(LocationMethodVisitor mv, String name, String descriptor) {
        switch (name) {
            case "debug":
            case "error":
            case "fatal":
            case "info":
            case "log":
            case "trace":
            case "warn":
                handleLogMethods(mv, name, descriptor);
                break;
            case "printf":
                handlePrintfMethods(mv, descriptor);
                break;
            case "always":
            case "atDebug":
            case "atError":
            case "atFatal":
            case "atInfo":
            case "atLevel":
            case "atTrace":
            case "atWarn":
                mv.invokeInterface(LOGGER_TYPE, new Method(name, descriptor));
                mv.storeLocation();
                break;
            case "catching":
            case "throwing":
                handleCatchingThrowing(mv, descriptor, "throwing".equals(name));
                break;
            case "isDebugEnabled":
            case "isEnabled":
            case "isErrorEnabled":
            case "isFatalEnabled":
            case "isInfoEnabled":
            case "isTraceEnabled":
            case "isWarnEnabled":
            case "logMessage":
                // These are NOPs
                mv.invokeInterface(LOGGER_TYPE, new Method(name, descriptor));
                break;
            case "traceEntry":
                handleTraceEntry(mv, descriptor);
                break;
            case "traceExit":
                handleTraceExit(mv, descriptor);
                break;
            default:
                throw new ConversionException("Unsupported method 'org.apache.logging.log4j.Logger#" + name + "'.");
        }
    }