queryless.plugin.logging.MavenLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of queryless-plugin-maven Show documentation
Show all versions of queryless-plugin-maven Show documentation
Plugin generates java constants classes from externalized query files.
The newest version!
/*
* ==============================LICENSE_START=============================
* Queryless (query constants generation)
* ========================================================================
* Copyright (C) 2018 - 2019 Pavel Jakovlev
* ========================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ===============================LICENSE_END==============================
*/
package queryless.plugin.logging;
import queryless.core.logging.Log;
public class MavenLog implements Log {
private final org.apache.maven.plugin.logging.Log log;
public MavenLog(final org.apache.maven.plugin.logging.Log log) {
this.log = log;
}
@Override
public boolean isDebugEnabled() {
return log.isDebugEnabled();
}
@Override
public void debug(final String msg) {
log.debug(msg);
}
@Override
public void debug(final String msg, final Throwable t) {
log.debug(msg, t);
}
@Override
public void debug(final Throwable t) {
log.debug(t);
}
@Override
public boolean isInfoEnabled() {
return log.isInfoEnabled();
}
@Override
public void info(final String msg) {
log.info(msg);
}
@Override
public void info(final String msg, final Throwable t) {
log.info(msg, t);
}
@Override
public void info(final Throwable t) {
log.info(t);
}
@Override
public boolean isWarnEnabled() {
return log.isWarnEnabled();
}
@Override
public void warn(final String msg) {
log.warn(msg);
}
@Override
public void warn(final String msg, final Throwable t) {
log.warn(msg, t);
}
@Override
public void warn(final Throwable t) {
log.warn(t);
}
@Override
public boolean isErrorEnabled() {
return log.isErrorEnabled();
}
@Override
public void error(final String msg) {
log.error(msg);
}
@Override
public void error(final String msg, final Throwable t) {
log.error(msg, t);
}
@Override
public void error(final Throwable t) {
log.error(t);
}
}