use of org.slf4j.helpers.FormattingTuple in project jfinal by jfinal.
the class Slf4jLog method warn.
public void warn(String format, Object... args) {
if (isWarnEnabled()) {
FormattingTuple ft = MessageFormatter.arrayFormat(format, args);
log.log(null, callerFQCN, LocationAwareLogger.WARN_INT, ft.getMessage(), NULL_ARGS, ft.getThrowable());
}
}
use of org.slf4j.helpers.FormattingTuple in project jfinal by jfinal.
the class Slf4jLog method debug.
public void debug(String format, Object... args) {
if (isDebugEnabled()) {
FormattingTuple ft = MessageFormatter.arrayFormat(format, args);
log.log(null, callerFQCN, LocationAwareLogger.DEBUG_INT, ft.getMessage(), NULL_ARGS, ft.getThrowable());
}
}
use of org.slf4j.helpers.FormattingTuple in project new-cloud by xie-summer.
the class JsonLogger method exit.
/**
* Log method exit
*
* @param result
* The result of the method being exited
*/
public void exit(Object result) {
if (instanceofLAL && logger.isTraceEnabled(ENTRY_MARKER)) {
FormattingTuple tp = MessageFormatter.format(EXIT_MESSAGE_1, result);
((LocationAwareLogger) logger).log(EXIT_MARKER, FQCN, LocationAwareLogger.TRACE_INT, tp.getMessage(), new Object[] { result }, tp.getThrowable());
}
}
use of org.slf4j.helpers.FormattingTuple in project new-cloud by xie-summer.
the class SimpleLogger method exit.
/**
* Log method exit
*
* @param result The result of the method being exited
*/
public void exit(Object result) {
if (instanceofLAL && logger.isTraceEnabled(ENTRY_MARKER)) {
FormattingTuple tp = MessageFormatter.format(EXIT_MESSAGE_1, result);
((LocationAwareLogger) logger).log(EXIT_MARKER, FQCN, LocationAwareLogger.TRACE_INT, tp.getMessage(), new Object[] { result }, tp.getThrowable());
}
}
use of org.slf4j.helpers.FormattingTuple in project infrautils by opendaylight.
the class RememberingLogger method error.
@Override
public void error(Marker marker, String format, Object... arguments) {
if (!LogRule.getMarker().equals(marker)) {
FormattingTuple mf = MessageFormatter.arrayFormat(format, arguments);
ERRORS.add(new LogCapture(ERROR, mf.getMessage(), mf.getThrowable()));
}
super.error(marker, format, arguments);
}
Aggregations