Commit 6fcb9a51 authored by Vinay Sajip's avatar Vinay Sajip

Clarified documentation for logging exception function/method.

parent 0258c5de
...@@ -227,8 +227,9 @@ is the module's name in the Python package namespace. ...@@ -227,8 +227,9 @@ is the module's name in the Python package namespace.
.. method:: Logger.exception(msg, *args, **kwargs) .. method:: Logger.exception(msg, *args, **kwargs)
Logs a message with level :const:`ERROR` on this logger. The arguments are Logs a message with level :const:`ERROR` on this logger. The arguments are
interpreted as for :meth:`debug`. Exception info is added to the logging interpreted as for :meth:`debug`, except that any passed *exc_info* is not
message. This method should only be called from an exception handler. inspected. Exception info is always added to the logging message. This method
should only be called from an exception handler.
.. method:: Logger.addFilter(filt) .. method:: Logger.addFilter(filt)
...@@ -845,8 +846,9 @@ functions. ...@@ -845,8 +846,9 @@ functions.
.. function:: exception(msg[, *args[, **kwargs]]) .. function:: exception(msg[, *args[, **kwargs]])
Logs a message with level :const:`ERROR` on the root logger. The arguments are Logs a message with level :const:`ERROR` on the root logger. The arguments are
interpreted as for :func:`debug`. Exception info is added to the logging interpreted as for :func:`debug`, except that any passed *exc_info* is not
message. This function should only be called from an exception handler. inspected. Exception info is always added to the logging message. This
function should only be called from an exception handler.
.. function:: log(level, msg[, *args[, **kwargs]]) .. function:: log(level, msg[, *args[, **kwargs]])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment