From dc060b5ab03eb8ad0b2cf933d56c645e1063188f Mon Sep 17 00:00:00 2001 From: Magesh Umasankar Date: Thu, 31 Jan 2002 19:56:33 +0000 Subject: [PATCH] AnsiColorLogger is an extension of DefaultLogger. It provides colorized messages based on the message level. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271022 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 6 +- docs/manual/listeners.html | 111 +++++++- .../org/apache/tools/ant/DefaultLogger.java | 26 +- .../tools/ant/listener/AnsiColorLogger.java | 265 ++++++++++++++++++ .../tools/ant/listener/defaults.properties | 43 +++ 5 files changed, 424 insertions(+), 27 deletions(-) create mode 100644 src/main/org/apache/tools/ant/listener/AnsiColorLogger.java create mode 100644 src/main/org/apache/tools/ant/listener/defaults.properties diff --git a/WHATSNEW b/WHATSNEW index 93c561322..2c5551061 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -129,8 +129,10 @@ Other changes: * no supports builds to fail based on conditions via if and unless attributes. -* Ant now comes with a BuildLogger implementation that can send emails - containing a log of the build process (MailLogger). +* Ant now comes with two new BuildLogger implementations - one that + can send emails containing a log of the build process (MailLogger); + the other that colorizes the output based on message levels using + ANSI color code escape sequences (AnsiColorLogger). * A "package" mapper type has been added to allow package directory names replaced with the dotted form. diff --git a/docs/manual/listeners.html b/docs/manual/listeners.html index 8b5daa157..30050e4d8 100644 --- a/docs/manual/listeners.html +++ b/docs/manual/listeners.html @@ -10,7 +10,7 @@

Overview

-

Ant has two related features to allow the build process to be monitored: +

Ant has two related features to allow the build process to be monitored: listeners and loggers.

Listeners

@@ -32,7 +32,7 @@ listeners and loggers.

Loggers extend the capabilities of listeners and add the following features: