com.github.housepower.log.Slf4jLogger Maven / Gradle / Ivy
/*
* 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.
*/
package com.github.housepower.log;
public class Slf4jLogger implements Logger {
private final org.slf4j.Logger logger;
public Slf4jLogger(org.slf4j.Logger logger) {
this.logger = logger;
}
@Override
public String getName() {
return this.logger.getName();
}
@Override
public boolean isTraceEnabled() {
return this.logger.isTraceEnabled();
}
@Override
public void trace(String format, Object... arguments) {
this.logger.trace(format, arguments);
}
@Override
public void trace(String msg, Throwable t) {
this.logger.trace(msg, t);
}
@Override
public boolean isDebugEnabled() {
return this.logger.isDebugEnabled();
}
@Override
public void debug(String format, Object... arguments) {
this.logger.debug(format, arguments);
}
@Override
public void debug(String msg, Throwable t) {
logger.debug(msg, t);
}
@Override
public boolean isInfoEnabled() {
return this.logger.isInfoEnabled();
}
@Override
public void info(String format, Object... arguments) {
this.logger.info(format, arguments);
}
@Override
public void info(String msg, Throwable t) {
this.logger.info(msg, t);
}
@Override
public boolean isWarnEnabled() {
return this.logger.isWarnEnabled();
}
@Override
public void warn(String format, Object... arguments) {
this.logger.warn(format, arguments);
}
@Override
public void warn(String msg, Throwable t) {
this.logger.warn(msg, t);
}
@Override
public boolean isErrorEnabled() {
return this.logger.isErrorEnabled();
}
@Override
public void error(String format, Object... arguments) {
this.logger.error(format, arguments);
}
@Override
public void error(String msg, Throwable t) {
this.logger.error(msg, t);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy