co.leantechniques.maven.buildtime.LogOutput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-buildtime-extension Show documentation
Show all versions of maven-buildtime-extension Show documentation
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