twisted.python.log.err(_stuff=None, _why=None, **kw)
function documentationtwisted.python.log
View Source
Write a failure to the log.
The _stuff
and _why
parameters use an
underscore prefix to lessen the chance of colliding with a keyword argument
the application wishes to pass. It is intended that they be supplied with
arguments passed positionally, not by keyword.
Parameters | _stuff | The failure to log. If _stuff is None a new Failure will be
created from the current exception state. If _stuff is an
Exception instance it will be wrapped in a Failure . (type: NoneType , Exception , or Failure .) |
_why | The source of this failure. This will be logged along with
_stuff and should describe the context in which the failure
occurred. (type: str ) |