Skip to content

Commit dd26f3d

Browse files
(DOCSP-23102) Log Connection Settings (#230)
1 parent ceec084 commit dd26f3d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

source/fundamentals/connection/mongoclientsettings.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,15 @@ This example demonstrates specifying a ``ConnectionString``:
183183
expects to connect to an available socket within ``5 SECONDS`` before
184184
timing out.
185185

186+
.. tip:: Log Your Settings
187+
188+
To log the ``MongoClient`` instance settings,
189+
set the ``org.mongodb.driver.client`` named
190+
logger to the ``INFO`` level.
191+
192+
To learn more about logging with the {+driver-long+}, see the
193+
:ref:`java-fundamentals-logging` guide.
194+
186195
.. _mcs-cluster-settings:
187196

188197
Cluster Settings

source/fundamentals/logging.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _java-fundamentals-logging:
2+
13
=======
24
Logging
35
=======

0 commit comments

Comments
 (0)