com.danidemi.jlubricant.slf4j.LubricantLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jlubricant-slf4j Show documentation
Show all versions of jlubricant-slf4j Show documentation
JLubricant extensions for slf4j
The newest version!
package com.danidemi.jlubricant.slf4j;
import org.slf4j.Logger;
import org.slf4j.Marker;
/**
* A {@link LubricantLogger} behaves like SLF4J's logger but offer the chance to specify the logging level a message should be written.
*
* @author danidemi
*
*/
public class LubricantLogger implements Logger {
public static final Level TRACE = new Trace();
public static final Level DEBUG = new Debug();
public static final Level INFO = new Info();
public static final Level WARN = new Warn();
public static final Level ERROR = new Error();
private org.slf4j.Logger logger;
LubricantLogger(Logger logger2) {
this.logger = logger2;
}
public void log(Level level, String msg){
level.log(logger, msg);
}
public void debug(Level level, Marker arg0, String arg1, Object arg2, Object arg3) {
level.log(logger, arg0, arg1, arg2, arg3);
}
public void debug(Level level, Marker arg0, String arg1, Object... arg2) {
level.log(logger, arg0, arg1, arg2);
}
public void debug(Level level, Marker arg0, String arg1, Object arg2) {
level.log(logger, arg0, arg1, arg2);
}
public void debug(Level level, Marker arg0, String arg1, Throwable arg2) {
level.log(logger, arg0, arg1, arg2);
}
public void debug(Level level, Marker arg0, String arg1) {
level.log(logger, arg0, arg1);
}
public void debug(Level level, String arg0, Object arg1, Object arg2) {
level.log(logger, arg0, arg1, arg2);
}
public void debug(Level level, String arg0, Object... arg1) {
level.log(logger, arg0, arg1);
}
public void debug(Level level, String arg0, Object arg1) {
level.log(logger, arg0, arg1);
}
public void debug(Level level, String arg0, Throwable arg1) {
level.log(logger, arg0, arg1);
}
public void debug(Marker arg0, String arg1, Object arg2, Object arg3) {
logger.debug(arg0, arg1, arg2, arg3);
}
public void debug(Marker arg0, String arg1, Object... arg2) {
logger.debug(arg0, arg1, arg2);
}
public void debug(Marker arg0, String arg1, Object arg2) {
logger.debug(arg0, arg1, arg2);
}
public void debug(Marker arg0, String arg1, Throwable arg2) {
logger.debug(arg0, arg1, arg2);
}
public void debug(Marker arg0, String arg1) {
logger.debug(arg0, arg1);
}
public void debug(String arg0, Object arg1, Object arg2) {
logger.debug(arg0, arg1, arg2);
}
public void debug(String arg0, Object... arg1) {
logger.debug(arg0, arg1);
}
public void debug(String arg0, Object arg1) {
logger.debug(arg0, arg1);
}
public void debug(String arg0, Throwable arg1) {
logger.debug(arg0, arg1);
}
public void debug(String arg0) {
logger.debug(arg0);
}
public void error(Marker arg0, String arg1, Object arg2, Object arg3) {
logger.error(arg0, arg1, arg2, arg3);
}
public void error(Marker arg0, String arg1, Object... arg2) {
logger.error(arg0, arg1, arg2);
}
public void error(Marker arg0, String arg1, Object arg2) {
logger.error(arg0, arg1, arg2);
}
public void error(Marker arg0, String arg1, Throwable arg2) {
logger.error(arg0, arg1, arg2);
}
public void error(Marker arg0, String arg1) {
logger.error(arg0, arg1);
}
public void error(String arg0, Object arg1, Object arg2) {
logger.error(arg0, arg1, arg2);
}
public void error(String arg0, Object... arg1) {
logger.error(arg0, arg1);
}
public void error(String arg0, Object arg1) {
logger.error(arg0, arg1);
}
public void error(String arg0, Throwable arg1) {
logger.error(arg0, arg1);
}
public void error(String arg0) {
logger.error(arg0);
}
public String getName() {
return logger.getName();
}
public void info(Marker arg0, String arg1, Object arg2, Object arg3) {
logger.info(arg0, arg1, arg2, arg3);
}
public void info(Marker arg0, String arg1, Object... arg2) {
logger.info(arg0, arg1, arg2);
}
public void info(Marker arg0, String arg1, Object arg2) {
logger.info(arg0, arg1, arg2);
}
public void info(Marker arg0, String arg1, Throwable arg2) {
logger.info(arg0, arg1, arg2);
}
public void info(Marker arg0, String arg1) {
logger.info(arg0, arg1);
}
public void info(String arg0, Object arg1, Object arg2) {
logger.info(arg0, arg1, arg2);
}
public void info(String arg0, Object... arg1) {
logger.info(arg0, arg1);
}
public void info(String arg0, Object arg1) {
logger.info(arg0, arg1);
}
public void info(String arg0, Throwable arg1) {
logger.info(arg0, arg1);
}
public void info(String arg0) {
logger.info(arg0);
}
public boolean isDebugEnabled() {
return logger.isDebugEnabled();
}
public boolean isDebugEnabled(Marker arg0) {
return logger.isDebugEnabled(arg0);
}
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}
public boolean isErrorEnabled(Marker arg0) {
return logger.isErrorEnabled(arg0);
}
public boolean isInfoEnabled() {
return logger.isInfoEnabled();
}
public boolean isInfoEnabled(Marker arg0) {
return logger.isInfoEnabled(arg0);
}
public boolean isTraceEnabled() {
return logger.isTraceEnabled();
}
public boolean isTraceEnabled(Marker arg0) {
return logger.isTraceEnabled(arg0);
}
public boolean isWarnEnabled() {
return logger.isWarnEnabled();
}
public boolean isWarnEnabled(Marker arg0) {
return logger.isWarnEnabled(arg0);
}
public void trace(Marker arg0, String arg1, Object arg2, Object arg3) {
logger.trace(arg0, arg1, arg2, arg3);
}
public void trace(Marker arg0, String arg1, Object... arg2) {
logger.trace(arg0, arg1, arg2);
}
public void trace(Marker arg0, String arg1, Object arg2) {
logger.trace(arg0, arg1, arg2);
}
public void trace(Marker arg0, String arg1, Throwable arg2) {
logger.trace(arg0, arg1, arg2);
}
public void trace(Marker arg0, String arg1) {
logger.trace(arg0, arg1);
}
public void trace(String arg0, Object arg1, Object arg2) {
logger.trace(arg0, arg1, arg2);
}
public void trace(String arg0, Object... arg1) {
logger.trace(arg0, arg1);
}
public void trace(String arg0, Object arg1) {
logger.trace(arg0, arg1);
}
public void trace(String arg0, Throwable arg1) {
logger.trace(arg0, arg1);
}
public void trace(String arg0) {
logger.trace(arg0);
}
public void warn(Marker arg0, String arg1, Object arg2, Object arg3) {
logger.warn(arg0, arg1, arg2, arg3);
}
public void warn(Marker arg0, String arg1, Object... arg2) {
logger.warn(arg0, arg1, arg2);
}
public void warn(Marker arg0, String arg1, Object arg2) {
logger.warn(arg0, arg1, arg2);
}
public void warn(Marker arg0, String arg1, Throwable arg2) {
logger.warn(arg0, arg1, arg2);
}
public void warn(Marker arg0, String arg1) {
logger.warn(arg0, arg1);
}
public void warn(String arg0, Object arg1, Object arg2) {
logger.warn(arg0, arg1, arg2);
}
public void warn(String arg0, Object... arg1) {
logger.warn(arg0, arg1);
}
public void warn(String arg0, Object arg1) {
logger.warn(arg0, arg1);
}
public void warn(String arg0, Throwable arg1) {
logger.warn(arg0, arg1);
}
public void warn(String arg0) {
logger.warn(arg0);
}
}