From 446c76d833ef2baa09976c167b3f6664a16e5202 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Mon, 6 Aug 2001 09:57:33 +0000 Subject: [PATCH] Restore task logging and events git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269469 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/Task.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/main/org/apache/tools/ant/Task.java b/src/main/org/apache/tools/ant/Task.java index cdccdb070..9937a0716 100644 --- a/src/main/org/apache/tools/ant/Task.java +++ b/src/main/org/apache/tools/ant/Task.java @@ -188,6 +188,25 @@ public abstract class Task extends ProjectComponent { } + /** + * Log a message with the default (INFO) priority. + * + * @param the message to be logged. + */ + public void log(String msg) { + log(msg, Project.MSG_INFO); + } + + /** + * Log a mesage with the give priority. + * + * @param the message to be logged. + * @param msgLevel the message priority at which this message is to be logged. + */ + public void log(String msg, int msgLevel) { + project.log(this, msg, msgLevel); + } + /** * Perform this task */