]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Corrected SMTPHandler docs and added info about threadName attribute of LogRecord
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 31 Mar 2005 20:23:04 +0000 (20:23 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 31 Mar 2005 20:23:04 +0000 (20:23 +0000)
Doc/lib/liblogging.tex

index 4e859638224df3360ab677af52521bb9733688a9..8146059cceb7bdf8d0d6655c4b1d447fb7f54422 100644 (file)
@@ -1133,8 +1133,7 @@ address via SMTP.
 \begin{classdesc}{SMTPHandler}{mailhost, fromaddr, toaddrs, subject}
 Returns a new instance of the \class{SMTPHandler} class. The
 instance is initialized with the from and to addresses and subject
-line of the email. The \var{toaddrs} should be a list of strings without
-domain names (That's what the \var{mailhost} is for). To specify a
+line of the email. The \var{toaddrs} should be a list of strings. To specify a
 non-standard SMTP port, use the (host, port) tuple format for the
 \var{mailhost} argument. If you use a string, the standard SMTP port
 is used.
@@ -1269,6 +1268,7 @@ Currently, the useful mapping keys in a \class{LogRecord} are:
 \lineii{\%(msecs)d}    {Millisecond portion of the time when the
                         \class{LogRecord} was created.}
 \lineii{\%(thread)d}   {Thread ID (if available).}
+\lineii{\%(threadName)s}   {Thread name (if available).}
 \lineii{\%(process)d}  {Process ID (if available).}
 \lineii{\%(message)s}  {The logged message, computed as \code{msg \% args}.}
 \end{tableii}