diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2003-02-19 13:46:18 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2003-02-19 13:46:18 (GMT) |
commit | 3749507296a6c5b2ab8ceaf7ffbb1a284094d598 (patch) | |
tree | 10678d63422831e5dd012da07da9aa350dbeebb2 /Doc/whatsnew | |
parent | 7970d20792eb4614a1dd6bd57dc5d9c107f28f35 (diff) | |
download | cpython-3749507296a6c5b2ab8ceaf7ffbb1a284094d598.zip cpython-3749507296a6c5b2ab8ceaf7ffbb1a284094d598.tar.gz cpython-3749507296a6c5b2ab8ceaf7ffbb1a284094d598.tar.bz2 |
logging.warn() renamed to warning()
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/whatsnew23.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/whatsnew/whatsnew23.tex b/Doc/whatsnew/whatsnew23.tex index a7fa673..5d7eeb8 100644 --- a/Doc/whatsnew/whatsnew23.tex +++ b/Doc/whatsnew/whatsnew23.tex @@ -445,7 +445,7 @@ import logging logging.debug('Debugging information') logging.info('Informational message') -logging.warn('Warning:config file %s not found', 'server.conf') +logging.warning('Warning:config file %s not found', 'server.conf') logging.error('Error occurred') logging.critical('Critical error -- shutting down') \end{verbatim} @@ -453,7 +453,7 @@ logging.critical('Critical error -- shutting down') This produces the following output: \begin{verbatim} -WARN:root:Warning:config file server.conf not found +WARNING:root:Warning:config file server.conf not found ERROR:root:Error occurred CRITICAL:root:Critical error -- shutting down \end{verbatim} @@ -463,7 +463,7 @@ suppressed and the output is sent to standard error. You can enable the display of information and debugging messages by calling the \method{setLevel()} method on the root logger. -Notice the \function{warn()} call's use of string formatting +Notice the \function{warning()} call's use of string formatting operators; all of the functions for logging messages take the arguments \code{(\var{msg}, \var{arg1}, \var{arg2}, ...)} and log the string resulting from \code{\var{msg} \% (\var{arg1}, \var{arg2}, |