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 $ |
copyright | 2001,2002 THYRELL. All rights reserved |
__construct()
buildFinished(\BuildEvent $event)
Also outputs the total build-time.
inherited_from | \DefaultLogger::buildFinished() |
---|
object
The BuildEvent @see BuildEvent::getException()
buildStarted(\BuildEvent $event)
Used for calculating the build-time.
inherited_from | \DefaultLogger::buildStarted() |
---|
object
The BuildEvent @access public
formatTime($micros)
@param integer The time stamp
access | private |
---|---|
inherited_from | \DefaultLogger::formatTime() |
setErrorStream(\OutputStream $err)
see | \global\BuildLogger#setErrorStream() |
---|---|
inherited_from | \DefaultLogger::setErrorStream() |
\OutputStream
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 | \global\BuildLogger#setMessageOutputLevel() |
---|---|
inherited_from | \DefaultLogger::setMessageOutputLevel() |
int
The logging level for the logger.
setOutputStream(\OutputStream $output)
see | \global\BuildLogger#setOutputStream() |
---|---|
inherited_from | \DefaultLogger::setOutputStream() |
\OutputStream
targetFinished(\BuildEvent $event)
We don't need specific action on this event. So the methods are empty.
inherited_from | \DefaultLogger::targetFinished() |
---|
object
The BuildEvent @see BuildEvent::getException()
taskFinished(\BuildEvent $event)
We don't need specific action on this event. So the methods are empty.
inherited_from | \DefaultLogger::taskFinished() |
---|
object
The BuildEvent @access public @see BuildEvent::getException()
taskStarted(\BuildEvent $event)
We don't need specific action on this event. So the methods are empty.
inherited_from | \DefaultLogger::taskStarted() |
---|
object
The BuildEvent @access public @see BuildEvent::getTask()
getBuildFailedMessage() : string
inherited_from | \DefaultLogger::getBuildFailedMessage() |
---|
string
The classic "BUILD FAILED"getBuildSuccessfulMessage() : string
inherited_from | \DefaultLogger::getBuildSuccessfulMessage() |
---|
string
The classic "BUILD FINISHED"printMessage(string $message, \OutputStream $stream, int $priority) : void
see | \global\DefaultLogger#printMessage |
---|
string
\OutputStream
int
setColors()
$msgOutputLevel : int
The default is
Project::MSG_VERBOSE
.
inherited_from | \DefaultLogger::$$msgOutputLevel |
---|
$out : \OutputStream
inherited_from | \DefaultLogger::$$out |
---|
$startTime
@var int
inherited_from | \DefaultLogger::$$startTime |
---|
$colorsSet
$debugColor
$errColor
$infoColor
$verboseColor
$warnColor
CLASS_DEBUG
CLASS_ERR
CLASS_INFO
CLASS_VERBOSE
CLASS_WARN
END_COLOR
LEFT_COLUMN_SIZE : int
The default char width is 12.
inherited_from | \DefaultLogger::LEFT_COLUMN_SIZE |
---|
PREFIX
SUFFIX