mirror of
https://github.com/python/cpython.git
synced 2025-10-30 18:07:37 +00:00
Updated documentation for SysLogHandler (#1720726).
This commit is contained in:
parent
35cff5ff75
commit
425c614b6e
1 changed files with 5 additions and 2 deletions
|
|
@ -1175,8 +1175,11 @@ Returns a new instance of the \class{SysLogHandler} class intended to
|
||||||
communicate with a remote \UNIX{} machine whose address is given by
|
communicate with a remote \UNIX{} machine whose address is given by
|
||||||
\var{address} in the form of a \code{(\var{host}, \var{port})}
|
\var{address} in the form of a \code{(\var{host}, \var{port})}
|
||||||
tuple. If \var{address} is not specified, \code{('localhost', 514)} is
|
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
|
used. The address is used to open a UDP socket. An alternative to providing
|
||||||
not specified, \constant{LOG_USER} is used.
|
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}
|
\end{classdesc}
|
||||||
|
|
||||||
\begin{methoddesc}{close}{}
|
\begin{methoddesc}{close}{}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue