sbt_inc.SbtLogger Maven / Gradle / Ivy
package sbt_inc;
import org.apache.maven.plugin.logging.Log;
import xsbti.F0;
import xsbti.Logger;
public class SbtLogger implements Logger {
Log log;
public SbtLogger(Log l) {
this.log = l;
}
@Override
public void error(F0 msg) {
if (log.isErrorEnabled()) {
log.error(msg.apply());
}
}
@Override
public void warn(F0 msg) {
if (log.isWarnEnabled()) {
log.warn(msg.apply());
}
}
@Override
public void info(F0 msg) {
if (log.isInfoEnabled()) {
log.info(msg.apply());
}
}
@Override
public void debug(F0 msg) {
if (log.isDebugEnabled()) {
log.debug(msg.apply());
}
}
@Override
public void trace(F0 exception) {
if (log.isDebugEnabled()) {
log.debug(exception.apply());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy