/** * Sets the 'useCommonsLang3' property of this class * * @param useCommonsLang3 */ public void setUseCommonsLang3(boolean useCommonsLang3) { super.log("useCommonsLang3 is deprecated. Please remove it from your config.", Project.MSG_WARN); }
public void debug(final String msg) { owner.log(msg, Project.MSG_DEBUG); } }
public void warn(final String msg) { owner.log(msg, Project.MSG_WARN); }
public void error(final String msg, final Throwable t) { owner.log(msg, t, Project.MSG_ERR); }
public void info(final String msg) { owner.log(msg, Project.MSG_INFO); }
public void verbose(final String msg) { owner.log(msg, Project.MSG_VERBOSE); }
@Override public void log(final String msg, final int msgLevel) { if (!quiet || msgLevel <= Project.MSG_ERR) { super.log(msg, msgLevel); } }
/** * Handles an error output by logging it with the WARN priority. * * @param output The error output to log. Should not be <code>null</code>. */ protected void handleErrorOutput(String output) { log(output, Project.MSG_WARN); }
/** * Log a message with <code>MSG_WARN</code> priority * @param message the message to log */ public void warning(final String message) { task.log(message, Project.MSG_WARN); }
@Override public void error(String msg) { if (task != null) { task.log(msg, Project.MSG_ERR); } }
@Override public void warn(String msg, Throwable t) { if (task != null) { task.log(msg, t, Project.MSG_WARN); } }
@Override protected void processLine(String line, int level) { if (line.startsWith(VerboseReporter.LISTENER_PREFIX)) { task.log(line, verbose ? Project.MSG_VERBOSE : Project.MSG_INFO); } else { super.processLine(line, level); } } }
/** * Log a message to the Ant output. * * @param message the message to be logged. * @param level the severity of this message. */ protected void log(String message, int level) { getTask().log(message, level); }
@Override public void trace(String format, Object arg) { if (task != null) { final FormattingTuple tp = MessageFormatter.format(format, arg); task.log(tp.getMessage(), Project.MSG_VERBOSE); } }
@Override public void debug(String format, Object arg1, Object arg2) { if (task != null) { final FormattingTuple tp = MessageFormatter.format(format, arg1, arg2); task.log(tp.getMessage(), Project.MSG_DEBUG); } }
@Override public void warn(String format, Object arg) { if (task != null) { final FormattingTuple tp = MessageFormatter.format(format, arg); task.log(tp.getMessage(), Project.MSG_WARN); } }
@Override public void trace(String format, Object... arguments) { if (task != null) { final FormattingTuple tp = MessageFormatter.format(format, arguments); task.log(tp.getMessage(), Project.MSG_VERBOSE); } }
@Override public void info(String format, Object arg1, Object arg2) { if (task != null) { final FormattingTuple tp = MessageFormatter.format(format, arg1, arg2); task.log(tp.getMessage(), Project.MSG_INFO); } }
@Override public void warn(String format, Object... arguments) { if (task != null) { final FormattingTuple tp = MessageFormatter.format(format, arguments); task.log(tp.getMessage(), Project.MSG_WARN); } }