Skip to content

Commit 207a212

Browse files
committed
DOCSP-48327: Address technical feedback on Logging page
1 parent 9c97c2b commit 207a212

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

source/logging.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ logging library, see the `Python logging library documentation <https://docs.pyt
3737
Examples
3838
--------
3939

40-
The follwing example sets the global logging level to ``INFO``:
40+
The following example sets the global logging level to ``INFO``:
4141

4242
.. code-block:: python
4343

@@ -52,6 +52,13 @@ The following example sets the log level on the ``pymongo.command`` component to
5252
import logging
5353
logging.getLogger("pymongo.command").setLevel(logging.DEBUG)
5454

55+
Messages that the driver outputs will have the log level specified at the beginning of the
56+
message, as shown by this example ``INFO`` message:
57+
58+
.. code-block:: none
59+
60+
INFO:pymongo.mongo_client:MongoClient opened default port on mongodb://localhost:27017/
61+
5562
Configuring Truncation
5663
----------------------
5764

0 commit comments

Comments
 (0)