/*
 * Copyright 2017 Crown Copyright
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package stroom.util.logging;

import java.util.function.Supplier;

public interface LambdaLogger {
    void trace(Supplier<String> message);

    void trace(Supplier<String> message, Throwable t);

    void debug(Supplier<String> message);

    void debug(Supplier<String> message, Throwable t);

    void info(Supplier<String> message);

    void info(Supplier<String> message, Throwable t);

    void warn(Supplier<String> message);

    void warn(Supplier<String> message, Throwable t);

    void error(Supplier<String> message);

    void error(Supplier<String> message, Throwable t);
}

@@ -623,16 +623,60 @@
 gging;%0A%0A
+import org.slf4j.helpers.MessageFormatter;%0A%0A
 import j
@@ -1225,11 +1225,498 @@
 able t);
+%0A%0A    /**%0A     * Constructs a formatted message string using a format string that takes%0A     * the same placeholders as SLF4J, e.g.%0A     * %22Function called with name %7B%7D and value %7B%7D%22%0A     * @param format SLF4J style format string%0A     * @param args The values for any placeholders in the message format%0A     * @return A formatted message%0A     */%0A    static String buildMessage(String format, Object... args) %7B%0A        return MessageFormatter.arrayFormat(format, args).getMessage();%0A    %7D
 %0A%7D%0A

Add LambdaLogger.buildMessage() method