use of org.slf4j.helpers.FormattingTuple in project Javacord by BtoBastian.
the class JavacordLogger method warn.
@Override
public final void warn(String format, Object arg1) {
FormattingTuple ft = MessageFormatter.format(format, arg1);
LogRecord record = new LogRecord(Level.WARNING, ft.getMessage());
record.setThrown(ft.getThrowable());
record.setLoggerName(name);
Logger.getLogger(name).log(record);
}
use of org.slf4j.helpers.FormattingTuple in project Javacord by BtoBastian.
the class JavacordLogger method info.
@Override
public final void info(String format, Object... arguments) {
FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments);
LogRecord record = new LogRecord(Level.INFO, ft.getMessage());
record.setThrown(ft.getThrowable());
record.setLoggerName(name);
Logger.getLogger(name).log(record);
}
use of org.slf4j.helpers.FormattingTuple in project alien4cloud by alien4cloud.
the class FlowExecutionLog method error.
public void error(String message, Object... args) {
FormattingTuple ft = MessageFormatter.arrayFormat(message, args);
errors.add(new LogTask(ft.getMessage()));
}
use of org.slf4j.helpers.FormattingTuple in project alien4cloud by alien4cloud.
the class FlowExecutionLog method warn.
public void warn(String message, Object... args) {
FormattingTuple ft = MessageFormatter.arrayFormat(message, args);
warnings.add(new LogTask(ft.getMessage()));
}
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());
}
}
Aggregations