Java tutorial
/* * Copyright (C) 2005-2015 Schlichtherle IT Services. * All rights reserved. Use is subject to license terms. */ package org.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); } }