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

echo.output.MavenLogger Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package echo.output;

import org.apache.maven.plugin.logging.Log;

/**
 * Wraps the Maven internal plugin logger to decouple from logging framework
 *
 * @author bjorn
 * @since 2012-12-22
 */
public class MavenLogger implements Logger {
    private final Log log;

    /** Create new MavenLogger wrapper */
    public MavenLogger(Log log) {
        this.log = log;
    }

    @Override
    public void info(String content) {
        log.info(content);
    }

    @Override
    public void debug(Throwable throwable) {
        if (log.isDebugEnabled()) {
            log.debug(throwable);
        }
    }

    @Override
    public void debug(String content) {
        if (log.isDebugEnabled()) {
            log.debug(content);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy