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_class_name HtmlColorLogger.WARNING_CLASS=your_css_class_name HtmlColorLogger.INFO_CLASS=your_css_class_name HtmlColorLogger.VERBOSE_CLASS=your_css_class_name HtmlColorLogger.DEBUG_CLASS=your_css_class_name
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: 4b57f4d435b61b6501688394f1ff8534d4b7e93f $ |
__construct()
setColors()
printMessage(string $message, resource $stream, int $priority) : void
string
The message to print.
Should not be null
.
resource
The stream to use for message printing.
int
The priority of the message. (Ignored in this implementation.)
setMessageOutputLevel(int $level)
Only messages with a message level lower than or equal to the given level are output to the log.
<
p> Constants for the message levels are in Project.php. The order of the levels, from least to most verbose, is:
The default message level for DefaultLogger is Project::MSG_ERR.
see | \BuildLogger#setMessageOutputLevel() |
---|
int
The logging level for the logger.
setOutputStream(\OutputStream $output)
setErrorStream(\OutputStream $err)
buildStarted(\BuildEvent $event)
buildFinished(\BuildEvent $event)
getBuildFailedMessage() : string
string
The classic "BUILD FAILED"
getBuildSuccessfulMessage() : string
string
The classic "BUILD FINISHED"
targetStarted(\BuildEvent $event)
@param object The BuildEvent
access |
public @see BuildEvent::getTarget() |
---|---|
targetFinished(\BuildEvent $event)
taskStarted(\BuildEvent $event)
taskFinished(\BuildEvent $event)
@param object The BuildEvent
access |
public @see BuildEvent::getException() |
---|---|
formatTime($micros)
@param integer The time stamp
access |
private |
---|---|
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