Uses CSS class that must be defined in the HTML page where the Phing output is displayed.
If used with the -logfile option, the output will contain the text wrapped in html elements with those css classes.
The default classes used for differentiating the message levels can be changed by editing the phing/listener/defaults.properties file.
This file can contain 5 key/value pairs: HtmlColorLogger.ERROR_CLASS=_your_css_classname HtmlColorLogger.WARNING_CLASS=_your_css_classname HtmlColorLogger.INFO_CLASS=_your_css_classname HtmlColorLogger.VERBOSE_CLASS=_your_css_classname HtmlColorLogger.DEBUG_CLASS=_your_css_classname
This stems from the Ansi Color Logger done by Hans Lellelid:
author |
Anton Stöckl anton@stoeckl.de (Phing HTML Color Logger) |
---|---|
author |
Hans Lellelid hans@xmpl.org (Phing Ansi Color Logger) |
author |
Magesh Umasankar (Ant) |
package |
phing.listener |
version |
$Id: 5288eb0042a1c3bf2b1d34ed509a6c46adce87fd $ |
__construct()
formatTime( $micros) : string
string
getBuildFailedMessage() : string
string
The classic "BUILD FAILED"
getBuildSuccessfulMessage() : string
string
The classic "BUILD FINISHED"
printMessage(string $message, \OutputStream|resource $stream, integer $priority) : void
throws |
---|
string
The message to print.
Should not be <code>null</code>.
integer
The priority of the message.
(Ignored in this implementation.)
setColors()
setErrorStream(\OutputStream $err)
setMessageOutputLevel(integer $level)
Only messages with a message level lower than or equal to the given level are output to the log.
Constants for the message levels are in Project.php. The order of the levels, from least to most verbose, is:
see | \BuildLogger#setMessageOutputLevel() |
---|---|
integer
The logging level for the logger.
setOutputStream(\OutputStream $output)
taskFinished(\BuildEvent $event)
CLASS_ERR
CLASS_VERBOSE
CLASS_DEBUG
CLASS_WARN
CLASS_INFO
PREFIX
SUFFIX
END_COLOR
LEFT_COLUMN_SIZE
var |
---|
errColor :
warnColor :
infoColor :
verboseColor :
debugColor :
colorsSet :
msgOutputLevel : integer
var |
---|
integer
startTime : integer
var |
---|
integer
out : \OutputStream
err : \OutputStream