We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f19f729 commit 74239deCopy full SHA for 74239de
source/logging.txt
@@ -58,4 +58,9 @@ Configuring Truncation
58
If you enable logging for the ``pymongo.command`` component, the resulting logs will
59
be truncated after 1000 bytes by default. You can configure this truncation limit
60
by setting the ``MONGODB_LOG_MAX_DOCUMENT_LENGTH`` environment variable to your
61
-desired length.
+desired length, as shown in the following example:
62
+
63
+.. code-block:: python
64
65
+ import os
66
+ os.environ('MONGODB_LOG_MAX_DOCUMENT_LENGTH') = 2000
0 commit comments