]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Updated documentation for SysLogHandler (#1720726).
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 25 May 2007 07:22:57 +0000 (07:22 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 25 May 2007 07:22:57 +0000 (07:22 +0000)
Doc/lib/liblogging.tex

index 7dcbd9198a203467fbe34b3fb276344458fe6cb8..9991db37bee9511037d1121abe8a479a3e9b851e 100644 (file)
@@ -1082,8 +1082,11 @@ Returns a new instance of the \class{SysLogHandler} class intended to
 communicate with a remote \UNIX{} machine whose address is given by
 \var{address} in the form of a \code{(\var{host}, \var{port})}
 tuple.  If \var{address} is not specified, \code{('localhost', 514)} is
-used.  The address is used to open a UDP socket.  If \var{facility} is
-not specified, \constant{LOG_USER} is used.
+used.  The address is used to open a UDP socket.  An alternative to providing
+a \code{(\var{host}, \var{port})} tuple is providing an address as a string,
+for example "/dev/log". In this case, a Unix domain socket is used to send
+the message to the syslog. If \var{facility} is not specified,
+\constant{LOG_USER} is used.
 \end{classdesc}
 
 \begin{methoddesc}{close}{}