From e8880986db0cde26d7f8aa4d06f7def65cc674da Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Thu, 31 Mar 2005 20:23:04 +0000 Subject: [PATCH] Corrected SMTPHandler docs and added info about threadName attribute of LogRecord --- Doc/lib/liblogging.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/lib/liblogging.tex b/Doc/lib/liblogging.tex index 4e859638224d..8146059cceb7 100644 --- a/Doc/lib/liblogging.tex +++ b/Doc/lib/liblogging.tex @@ -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} -- 2.47.3