Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68e6d57

Browse files
committed
Various minor markup adjustments.
1 parent c8d6ef5 commit 68e6d57

1 file changed

Lines changed: 25 additions & 16 deletions

File tree

Doc/lib/liblogging.tex

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ \section{\module{logging} ---
88
\moduleauthor{Vinay Sajip}{[email protected]}
99
\sectionauthor{Vinay Sajip}{[email protected]}
1010

11-
\modulesynopsis{Logging module for Python based on PEP 282.}
11+
\modulesynopsis{Logging module for Python based on \pep{282}.}
1212

1313
\indexii{Errors}{logging}
1414

@@ -90,7 +90,7 @@ \section{\module{logging} ---
9090
designated email address.
9191

9292
\item \class{SysLogHandler} instances send error messages to a
93-
Unix syslog, possibly on a remote machine.
93+
\UNIX{} syslog daemon, possibly on a remote machine.
9494

9595
\item \class{NTEventLogHandler} instances send error messages to a
9696
Windows NT/2000/XP event log.
@@ -100,7 +100,7 @@ \section{\module{logging} ---
100100
met.
101101

102102
\item \class{HTTPHandler} instances send error messages to an
103-
HTTP server using either GET or POST semantics.
103+
HTTP server using either \samp{GET} or \samp{POST} semantics.
104104

105105
\end{enumerate}
106106

@@ -227,6 +227,14 @@ \section{\module{logging} ---
227227
behavior.
228228
\end{funcdesc}
229229

230+
231+
\begin{seealso}
232+
\seepep{282}{A Logging System}
233+
{The proposal which described this feature for inclusion in
234+
the Python standard library.}
235+
\end{seealso}
236+
237+
230238
\subsection{Logger Objects}
231239

232240
Loggers have the following attributes and methods. Note that Loggers are
@@ -342,10 +350,10 @@ \subsection{Logger Objects}
342350

343351
\subsection{Handler Objects}
344352

345-
Handlers have the following attributes and methods. Note that a Handler is
346-
never instantiated directly; this class acts as a base for more useful
347-
subclasses. However, the \method{__init__()} in subclasses needs to call
348-
\method{Handler.__init__()}.
353+
Handlers have the following attributes and methods. Note that
354+
\class{Handler} is never instantiated directly; this class acts as a
355+
base for more useful subclasses. However, the \method{__init__()}
356+
method in subclasses needs to call \method{Handler.__init__()}.
349357

350358
\begin{methoddesc}{__init__}{level=\constant{ALL}}
351359
Initializes the \class{Handler} instance by setting its level, setting
@@ -457,7 +465,7 @@ \subsubsection{StreamHandler}
457465
\subsubsection{FileHandler}
458466

459467
The \class{FileHandler} class sends logging output to a disk file.
460-
It delegates the output functionality from \class{StreamHandler}.
468+
It inherits the output functionality from \class{StreamHandler}.
461469

462470
\begin{classdesc}{FileHandler}{filename\optional{, mode}}
463471
Returns a new instance of the \class{FileHandler} class. The specified
@@ -482,7 +490,7 @@ \subsubsection{RotatingFileHandler}
482490
backupCount}}
483491
Returns a new instance of the \class{RotatingFileHandler} class. The
484492
specified file is opened and used as the stream for logging. If
485-
\var{mode} is not specified, \constant{"a"} is used. By default, the
493+
\var{mode} is not specified, \code{'a'} is used. By default, the
486494
file grows indefinitely. You can use the \var{maxBytes} and
487495
\var{backupCount} values to allow the file to \dfn{rollover} at a
488496
predetermined size. When the size is about to be exceeded, the file is
@@ -582,14 +590,15 @@ \subsubsection{DatagramHandler}
582590
\subsubsection{SysLogHandler}
583591

584592
The \class{SysLogHandler} class supports sending logging messages to a
585-
remote or local Unix syslog.
593+
remote or local \UNIX{} syslog.
586594

587595
\begin{classdesc}{SysLogHandler}{\optional{address\optional{, facility}}}
588596
Returns a new instance of the \class{SysLogHandler} class intended to
589-
communicate with a remote Unix machine whose address is given by
590-
\var{address} in the form of a (host, port) tuple. If \var{address} is not
591-
specified, ('localhost', 514) is used. The address is used to open a UDP
592-
socket. If \var{facility} is not specified, \constant{LOG_USER} is used.
597+
communicate with a remote \UNIX{} machine whose address is given by
598+
\var{address} in the form of a \code{(\var{host}, \var{port})}
599+
tuple. If \var{address} is not specified, \code{('localhost', 514)} is
600+
used. The address is used to open a UDP socket. If \var{facility} is
601+
not specified, \constant{LOG_USER} is used.
593602
\end{classdesc}
594603

595604
\begin{methoddesc}{close}{}
@@ -757,12 +766,12 @@ \subsubsection{MemoryHandler}
757766
\subsubsection{HTTPHandler}
758767

759768
The \class{HTTPHandler} class supports sending logging messages to a
760-
Web server, using either GET or POST semantics.
769+
Web server, using either \samp{GET} or \samp{POST} semantics.
761770

762771
\begin{classdesc}{HTTPHandler}{host, url\optional{, method}}
763772
Returns a new instance of the \class{HTTPHandler} class. The
764773
instance is initialized with a host address, url and HTTP method.
765-
If no \var{method} is specified, GET is used.
774+
If no \var{method} is specified, \samp{GET} is used.
766775
\end{classdesc}
767776

768777
\begin{methoddesc}{emit}{record}

0 commit comments

Comments
 (0)