From c4eee4d986a90e301d41a08f87ffbe8c57e0ac63 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 17 Dec 2004 11:37:29 +0000 Subject: [PATCH] style - by Kevin Jackson git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277233 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/util/TaskLogger.java | 41 +++++++++++++++---- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/src/main/org/apache/tools/ant/util/TaskLogger.java b/src/main/org/apache/tools/ant/util/TaskLogger.java index 134281aee..91d067793 100644 --- a/src/main/org/apache/tools/ant/util/TaskLogger.java +++ b/src/main/org/apache/tools/ant/util/TaskLogger.java @@ -20,37 +20,60 @@ import org.apache.tools.ant.Project; import org.apache.tools.ant.Task; /** - * A facade that makes logging nicers to use. - * + * A facade that makes logging nicer to use. * @version $Revision$ $Date$ */ public final class TaskLogger { /** * Task to use to do logging. */ - private Task m_task; + private Task task; + /** + * Constructor for the TaskLogger + * @param task the task + */ public TaskLogger(final Task task) { - this.m_task = task; + this.task = task; } + /** + * Log a message with MSG_INFO priority + * @param message the message to log + */ public void info(final String message) { - m_task.log(message, Project.MSG_INFO); + task.log(message, Project.MSG_INFO); } + /** + * Log a message with MSG_ERR priority + * @param message the message to log + */ public void error(final String message) { - m_task.log(message, Project.MSG_ERR); + task.log(message, Project.MSG_ERR); } + /** + * Log a message with MSG_WARN priority + * @param message the message to log + */ public void warning(final String message) { - m_task.log(message, Project.MSG_WARN); + task.log(message, Project.MSG_WARN); } + /** + * Log a message with MSG_VERBOSE priority + * @param message the message to log + */ public void verbose(final String message) { - m_task.log(message, Project.MSG_VERBOSE); + task.log(message, Project.MSG_VERBOSE); } + /** + * Log a message with MSG_DEBUG priority + * @param message the message to log + */ public void debug(final String message) { - m_task.log(message, Project.MSG_DEBUG); + task.log(message, Project.MSG_DEBUG); } }