diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2004-09-22 12:55:16 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2004-09-22 12:55:16 (GMT) |
commit | c6646c097aceec4b4ee64968e875b508e908e9f4 (patch) | |
tree | 7c2df452ec147db01773d709358c0255d8ce21af | |
parent | b9591174df4a330f75b1a5dc4893af063b8a7b7f (diff) | |
download | cpython-c6646c097aceec4b4ee64968e875b508e908e9f4.zip cpython-c6646c097aceec4b4ee64968e875b508e908e9f4.tar.gz cpython-c6646c097aceec4b4ee64968e875b508e908e9f4.tar.bz2 |
Added getLoggerClass()
-rw-r--r-- | Doc/lib/liblogging.tex | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/lib/liblogging.tex b/Doc/lib/liblogging.tex index ecb3791..cfbb838 100644 --- a/Doc/lib/liblogging.tex +++ b/Doc/lib/liblogging.tex @@ -144,6 +144,19 @@ This means that logger instances never need to be passed between different parts of an application. \end{funcdesc} +\begin{funcdesc}{getLoggerClass}{} +Return either the standard \class{Logger} class, or the last class passed to +\function{setLoggerClass()}. This function may be called from within a new +class definition, to ensure that installing a customised \class{Logger} class +will not undo customisations already applied by other code. For example: + +\begin{verbatim} + class MyLogger(logging.getLoggerClass()): + # ... override behaviour here +\end{verbatim} + +\end{funcdesc} + \begin{funcdesc}{debug}{msg\optional{, *args\optional{, **kwargs}}} Logs a message with level \constant{DEBUG} on the root logger. The \var{msg} is the message format string, and the \var{args} are the |