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

co.leantechniques.maven.buildtime.LogOutput Maven / Gradle / Ivy

Go to download

This extension displays the duration of each plugin to discover why your build is slow.

The newest version!
package co.leantechniques.maven.buildtime;

import org.slf4j.Logger;

public class LogOutput {

    private Logger logger;
    private boolean logToInfo;

    public LogOutput(Logger logger, boolean logToInfo) {
        this.logger = logger;
        this.logToInfo = logToInfo;
    }

    public void log(String string) {
        if (logToInfo) {
            logger.info(string);
        } else {
            logger.debug(string);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy