mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Removed a stray capitalization and improved the grammar in the 'print' vs 'logging' section
This commit is contained in:
@@ -28,8 +28,8 @@ Other reasons why logging is better than ``print``:
|
|||||||
- Events logged in included modules are automatically accessible via the
|
- Events logged in included modules are automatically accessible via the
|
||||||
root logger
|
root logger
|
||||||
to your application's logging stream, unless you filter them out.
|
to your application's logging stream, unless you filter them out.
|
||||||
- Logging can be selectively silenced or disabled by using the method
|
- Logging can be selectively silenced by using the method
|
||||||
:meth:`logging.Logger.setLevel` or setting the attribute
|
:meth:`logging.Logger.setLevel` or disabled by setting the attribute
|
||||||
:attr:`logging.Logger.disabled` to ``True``.
|
:attr:`logging.Logger.disabled` to ``True``.
|
||||||
|
|
||||||
|
|
||||||
@@ -37,8 +37,8 @@ Logging in a Library
|
|||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
Notes for `configuring logging for a library`_ are in the
|
Notes for `configuring logging for a library`_ are in the
|
||||||
`basic logging tutorial`_. Because the *user*, not the library, should
|
`logging tutorial`_. Because the *user*, not the library, should
|
||||||
dictate what happens when a logging event occurs, One admonition bears
|
dictate what happens when a logging event occurs, one admonition bears
|
||||||
repeating:
|
repeating:
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
@@ -86,6 +86,7 @@ There are at least three ways to configure a logger:
|
|||||||
- using a dictionary
|
- using a dictionary
|
||||||
- using code
|
- using code
|
||||||
|
|
||||||
|
|
||||||
Example Configuration via an INI File
|
Example Configuration via an INI File
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user