Skip to content

Commit

Permalink
document addLogWith{Failure,Exception}
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Nov 14, 2014
1 parent 453403f commit 853a23f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions master/docs/developer/cls-buildsteps.rst
Expand Up @@ -412,6 +412,22 @@ BuildStep

See :ref:`Adding-LogObservers` for more information on log observers.

.. py:method:: addLogWithFailure(why, logprefix='')
:param Failure why: the failure to log
:param logprefix: prefix for the log name
:returns: Deferred

Add log files displaying the given failure, named ``<logprefix>err.text`` and ``<logprefix>err.html``.

.. py:method:: addLogWithException(why, logprefix='')
:param Exception why: the exception to log
:param logprefix: prefix for the log name
:returns: Deferred

Similar to ``addLogWithFailure``, but for an Exception instead of a Failure.

Along with logs, build steps have an associated set of links that can be used to provide additional information for developers.
Those links are added during the build with this method:

Expand Down

0 comments on commit 853a23f

Please sign in to comment.