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: ba5b6f237e0ec98476f4dbda19bf397386df7820 $ |
__construct()
buildFinished(\BuildEvent $event)
buildStarted(\BuildEvent $event)
formatTime( $micros)
@param integer The time stamp
access |
private |
---|---|
getBuildFailedMessage() : string
string
The classic "BUILD FAILED"
getBuildSuccessfulMessage() : string
string
The classic "BUILD FINISHED"
printMessage(string $message, resource $stream, integer $priority) : void
string
The message to print.
Should not be <code>null</code>.
resource
The stream to use for message printing.
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)
targetFinished(\BuildEvent $event)
targetStarted(\BuildEvent $event)
@param object The BuildEvent
access |
public @see BuildEvent::getTarget() |
---|---|
\BuildEvent
taskFinished(\BuildEvent $event)
@param object The BuildEvent
access |
public @see BuildEvent::getException() |
---|---|
\BuildEvent
taskStarted(\BuildEvent $event)
CLASS_ERR
CLASS_VERBOSE
CLASS_DEBUG
CLASS_WARN
CLASS_INFO
PREFIX
SUFFIX
END_COLOR
LEFT_COLUMN_SIZE
@var int
errColor :
warnColor :
infoColor :
verboseColor :
debugColor :
colorsSet :
msgOutputLevel :
@var int
startTime :
@var int
out : \OutputStream
err : \OutputStream