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

net.truelicense.maven.plugin.commons.DecoratingLog Maven / Gradle / Ivy

Go to download

The TrueLicense Maven Plugin generates source files from Apache Velocity template files or obfuscates constant string values in class files.

There is a newer version: 3.2.0
Show newest version
/*
 * Copyright (C) 2005-2017 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */

package net.truelicense.maven.plugin.commons;

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

import java.util.Objects;

/**
 * @author Christian Schlichtherle
 */
class DecoratingLog implements Log {

    /** The nullable log. */
    final Log log;

    DecoratingLog(final Log log) { this.log = Objects.requireNonNull(log); }

    @Override
    public boolean isDebugEnabled() { return log.isDebugEnabled(); }

    @Override
    public void debug(CharSequence content) { log.debug(content); }

    @Override
    public void debug(CharSequence content, Throwable error) {
        log.debug(content, error);
    }

    @Override
    public void debug(Throwable error) { log.debug(error); }

    @Override
    public boolean isInfoEnabled() { return log.isInfoEnabled(); }

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

    @Override
    public void info(CharSequence content, Throwable error) {
        log.info(content, error);
    }

    @Override
    public void info(Throwable error) { log.info(error); }

    @Override
    public boolean isWarnEnabled() { return log.isWarnEnabled(); }

    @Override
    public void warn(CharSequence content) { log.warn(content); }

    @Override
    public void warn(CharSequence content, Throwable error) {
        log.warn(content, error);
    }

    @Override
    public void warn(Throwable error) { log.warn(error); }

    @Override
    public boolean isErrorEnabled() { return log.isErrorEnabled(); }

    @Override
    public void error(CharSequence content) { log.error(content); }

    @Override
    public void error(CharSequence content, Throwable error) {
        log.error(content, error);
    }

    @Override
    public void error(Throwable error) { log.error(error); }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy