mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Logging documentation - further update.
This commit is contained in:
parent
7bdfe7755b
commit
36675b6a0f
1 changed files with 4 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
||||||
.. index:: pair: Errors; logging
|
.. index:: pair: Errors; logging
|
||||||
|
|
||||||
This module defines functions and classes which implement a flexible error
|
This module defines functions and classes which implement a flexible error
|
||||||
logging system for applications.
|
logging system for applications and libraries.
|
||||||
|
|
||||||
The key benefit of having the logging API provided by a standard library module
|
The key benefit of having the logging API provided by a standard library module
|
||||||
is that all Python modules can participate in logging, so your application log
|
is that all Python modules can participate in logging, so your application log
|
||||||
|
@ -224,8 +224,9 @@ will display::
|
||||||
As you can see, merging of variable data into the event description message
|
As you can see, merging of variable data into the event description message
|
||||||
uses the old, %-style of string formatting. This is for backwards
|
uses the old, %-style of string formatting. This is for backwards
|
||||||
compatibility: the logging package pre-dates newer formatting options such as
|
compatibility: the logging package pre-dates newer formatting options such as
|
||||||
:meth:`str.format` and :class:`string.Template`. These formatting options *are*
|
:meth:`str.format` and :class:`string.Template`. These newer formatting
|
||||||
supported, but exploring them is outside the scope of this tutorial.
|
options *are* supported, but exploring them is outside the scope of this
|
||||||
|
tutorial.
|
||||||
|
|
||||||
|
|
||||||
Changing the format of displayed messages
|
Changing the format of displayed messages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue