diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-04-08 16:18:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-08 16:18:04 (GMT) |
commit | 46936d5a71d1683dbd8ddb6d7f39aab50ecfec50 (patch) | |
tree | 1f51e69c1fbb9401516478b8866d01f1513644cb /Doc/library/logging.rst | |
parent | 9265dd72e5ec1cfa5fcdb5be8ebffe1d9994bd4b (diff) | |
download | cpython-46936d5a71d1683dbd8ddb6d7f39aab50ecfec50.zip cpython-46936d5a71d1683dbd8ddb6d7f39aab50ecfec50.tar.gz cpython-46936d5a71d1683dbd8ddb6d7f39aab50ecfec50.tar.bz2 |
Improve highlighting of some code blocks. (GH-6401)
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r-- | Doc/library/logging.rst | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 88f804a..f9eda17 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -179,7 +179,9 @@ is the module's name in the Python package namespace. You can specify *stack_info* independently of *exc_info*, e.g. to just show how you got to a certain point in your code, even when no exceptions were - raised. The stack frames are printed following a header line which says:: + raised. The stack frames are printed following a header line which says: + + .. code-block:: none Stack (most recent call last): @@ -198,7 +200,9 @@ is the module's name in the Python package namespace. logger = logging.getLogger('tcpserver') logger.warning('Protocol problem: %s', 'connection reset', extra=d) - would print something like :: + would print something like + + .. code-block:: none 2006-02-08 22:20:02,165 192.168.0.1 fbloggs Protocol problem: connection reset @@ -939,7 +943,9 @@ functions. You can specify *stack_info* independently of *exc_info*, e.g. to just show how you got to a certain point in your code, even when no exceptions were - raised. The stack frames are printed following a header line which says:: + raised. The stack frames are printed following a header line which says: + + .. code-block:: none Stack (most recent call last): @@ -957,7 +963,9 @@ functions. d = {'clientip': '192.168.0.1', 'user': 'fbloggs'} logging.warning('Protocol problem: %s', 'connection reset', extra=d) - would print something like:: + would print something like: + + .. code-block:: none 2006-02-08 22:20:02,165 192.168.0.1 fbloggs Protocol problem: connection reset |