[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/listener/ -> PearLogger.php (sommaire)

(pas de description)

Poids: 246 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

PearLogger:: (11 méthodes):
  configureLogging()
  logger()
  setMessageOutputLevel()
  buildStarted()
  buildFinished()
  targetStarted()
  targetFinished()
  taskStarted()
  taskFinished()
  messageLogged()
  _formatTime()


Classe: PearLogger  - X-Ref

Writes log messages to PEAR Log.

By default it will log to file in current directory w/ name 'phing.log'.  You can customize
this behavior by setting properties:
- pear.log.type
- pear.log.name
- pear.log.ident (note that this class changes ident to project name)
- pear.log.conf (note that array values are currently unsupported in Phing property files)

<code>
phing -f build.xml -logger phing.listener.PearLogger -Dpear.log.type=file -Dpear.log.name=/path/to/log.log
</code>

configureLogging()   X-Ref
Configure the logger.


logger()   X-Ref
Get the configured PEAR logger to use.
This method just ensures that logging has been configured and returns the configured logger.

return: Log

setMessageOutputLevel($level)   X-Ref
Set the msgOutputLevel this logger is to respond to.

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:

<ul>
<li>PROJECT_MSG_ERR</li>
<li>PROJECT_MSG_WARN</li>
<li>PROJECT_MSG_INFO</li>
<li>PROJECT_MSG_VERBOSE</li>
<li>PROJECT_MSG_DEBUG</li>
</ul>

The default message level for DefaultLogger is PROJECT_MSG_ERR.

param: integer  the logging level for the logger.

buildStarted(BuildEvent $event)   X-Ref
Sets the start-time when the build started. Used for calculating
the build-time.

param: object  The BuildEvent

buildFinished(BuildEvent $event)   X-Ref
Prints whether the build succeeded or failed, and any errors that
occured during the build. Also outputs the total build-time.

param: object  The BuildEvent

targetStarted(BuildEvent $event)   X-Ref
Prints the current target name

param: object  The BuildEvent

targetFinished(BuildEvent $event)   X-Ref
Fired when a target has finished. We don't need specific action on this
event. So the methods are empty.

param: object  The BuildEvent

taskStarted(BuildEvent $event)   X-Ref
Fired when a task is started. We don't need specific action on this
event. So the methods are empty.

param: object  The BuildEvent

taskFinished(BuildEvent $event)   X-Ref
Fired when a task has finished. We don't need specific action on this
event. So the methods are empty.

param: object  The BuildEvent

messageLogged(BuildEvent $event)   X-Ref
Print a message to the stdout.

param: object  The BuildEvent

_formatTime($micros)   X-Ref
Formats a time micro integer to human readable format.

param: integer The time stamp



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7