private FormattingTuple logWithLoggerName()

in src/main/java/org/apache/sling/tracer/internal/TracerContext.java [130:143]


    private FormattingTuple logWithLoggerName(String loggerName, String format, Object... params) {
        FormattingTuple tuple = MessageFormatter.arrayFormat(format, params);
        String msg = tuple.getMessage();
        msg = "[" + loggerName + "] " + msg;
        if (progressTracker == null) {
            if (buffer == null) {
                buffer = new CyclicBuffer<String>(LOG_BUFFER_SIZE);
            }
            buffer.add(msg);
        } else {
            progressTracker.log(msg);
        }
        return tuple;
    }