📄 loggerwrapper.java
字号:
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.arrayFormat(format, argArray);
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.INFO_INT, formattedMessage, null);
} else {
logger.info(format, argArray);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void info(String msg, Throwable t) {
if (!logger.isInfoEnabled())
return;
if (instanceofLAL) {
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.INFO_INT, msg, t);
} else {
logger.info(msg, t);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void info(Marker marker, String msg) {
if (!logger.isInfoEnabled())
return;
if (instanceofLAL) {
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.INFO_INT, msg, null);
} else {
logger.info(marker, msg);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void info(Marker marker, String format, Object arg) {
if (!logger.isInfoEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg);
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.INFO_INT, formattedMessage, null);
} else {
logger.info(marker, format, arg);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void info(Marker marker, String format, Object arg1, Object arg2) {
if (!logger.isInfoEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg1, arg2);
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.INFO_INT, formattedMessage, null);
} else {
logger.info(marker, format, arg1, arg2);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void info(Marker marker, String format, Object[] argArray) {
if (!logger.isInfoEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.arrayFormat(format, argArray);
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.INFO_INT, formattedMessage, null);
} else {
logger.info(marker, format, argArray);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void info(Marker marker, String msg, Throwable t) {
if (!logger.isInfoEnabled())
return;
if (instanceofLAL) {
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.INFO_INT, msg, t);
} else {
logger.info(marker, msg, t);
}
}
public boolean isWarnEnabled() {
return logger.isWarnEnabled();
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public boolean isWarnEnabled(Marker marker) {
return logger.isWarnEnabled(marker);
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void warn(String msg) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.WARN_INT, msg, null);
} else {
logger.warn(msg);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void warn(String format, Object arg) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg);
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.WARN_INT, formattedMessage, null);
} else {
logger.warn(format, arg);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void warn(String format, Object arg1, Object arg2) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg1, arg2);
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.WARN_INT, formattedMessage, null);
} else {
logger.warn(format, arg1, arg2);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void warn(String format, Object[] argArray) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.arrayFormat(format, argArray);
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.WARN_INT, formattedMessage, null);
} else {
logger.warn(format, argArray);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void warn(String msg, Throwable t) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.WARN_INT, msg, t);
} else {
logger.warn(msg, t);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void warn(Marker marker, String msg) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.WARN_INT, msg, null);
} else {
logger.warn(marker, msg);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void warn(Marker marker, String format, Object arg) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg);
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.WARN_INT, formattedMessage, null);
} else {
logger.warn(marker, format, arg);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void warn(Marker marker, String format, Object arg1, Object arg2) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg1, arg2);
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.WARN_INT, formattedMessage, null);
} else {
logger.warn(marker, format, arg1, arg2);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void warn(Marker marker, String format, Object[] argArray) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.arrayFormat(format, argArray);
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.WARN_INT, formattedMessage, null);
} else {
logger.warn(marker, format, argArray);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void warn(Marker marker, String msg, Throwable t) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.WARN_INT, msg, t);
} else {
logger.warn(marker, msg, t);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public boolean isErrorEnabled(Marker marker) {
return logger.isErrorEnabled(marker);
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void error(String msg) {
if (!logger.isErrorEnabled())
return;
if (instanceofLAL) {
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.ERROR_INT, msg, null);
} else {
logger.error(msg);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void error(String format, Object arg) {
if (!logger.isErrorEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg);
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.ERROR_INT, formattedMessage, null);
} else {
logger.error(format, arg);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void error(String format, Object arg1, Object arg2) {
if (!logger.isErrorEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg1, arg2);
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.ERROR_INT, formattedMessage, null);
} else {
logger.error(format, arg1, arg2);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void error(String format, Object[] argArray) {
if (!logger.isErrorEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.arrayFormat(format, argArray);
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.ERROR_INT, formattedMessage, null);
} else {
logger.error(format, argArray);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void error(String msg, Throwable t) {
if (!logger.isErrorEnabled())
return;
if (instanceofLAL) {
((LocationAwareLogger) logger).log(null, fqcn,
LocationAwareLogger.ERROR_INT, msg, t);
} else {
logger.error(msg, t);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void error(Marker marker, String msg) {
if (!logger.isErrorEnabled())
return;
if (instanceofLAL) {
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.ERROR_INT, msg, null);
} else {
logger.error(marker, msg);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void error(Marker marker, String format, Object arg) {
if (!logger.isErrorEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg);
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.ERROR_INT, formattedMessage, null);
} else {
logger.error(marker, format, arg);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void error(Marker marker, String format, Object arg1, Object arg2) {
if (!logger.isErrorEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg1, arg2);
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.ERROR_INT, formattedMessage, null);
} else {
logger.error(marker, format, arg1, arg2);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void error(Marker marker, String format, Object[] argArray) {
if (!logger.isErrorEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.arrayFormat(format, argArray);
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.ERROR_INT, formattedMessage, null);
} else {
logger.error(marker, format, argArray);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public void error(Marker marker, String msg, Throwable t) {
if (!logger.isErrorEnabled())
return;
if (instanceofLAL) {
((LocationAwareLogger) logger).log(marker, fqcn,
LocationAwareLogger.ERROR_INT, msg, t);
} else {
logger.error(marker, msg, t);
}
}
/**
* Delegate to the appropriate method of the underlying logger.
*/
public String getName() {
return logger.getName();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -