All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.devtools.messagewriter.MessageWriter Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.devtools.messagewriter;

import java.io.PrintStream;

public interface MessageWriter {

    static MessageWriter info() {
        return new DefaultMessageWriter();
    }

    static MessageWriter info(PrintStream out) {
        return new DefaultMessageWriter(out);
    }

    static MessageWriter debug() {
        return new DefaultMessageWriter(true);
    }

    static MessageWriter debug(PrintStream out) {
        return new DefaultMessageWriter(out, true);
    }

    default void info(String format, Object... args) {
        info(String.format(format, args));
    }

    void info(String msg);

    default void error(String format, Object... args) {
        error(String.format(format, args));
    }

    void error(String msg);

    boolean isDebugEnabled();

    default void debug(String format, Object... args) {
        if (!isDebugEnabled()) {
            return;
        }
        debug(String.format(format, args));
    }

    void debug(String msg);

    default void warn(String format, Object... args) {
        warn(String.format(format, args));
    }

    void warn(String msg);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy