@@ -17,7 +17,7 @@ Definition
1717
1818.. method:: db.setProfilingLevel(level, options)
1919
20- .. versionchanged:: 4.4.2
20+ .. versionchanged:: 5.0
2121
2222 For a :binary:`~bin.mongod` instance, the method enables, disables,
2323 or configures the :doc:`/tutorial/manage-the-database-profiler`. The
@@ -28,22 +28,22 @@ Definition
2828 log.
2929
3030 If the :ref:`database profiler level <set-profiling-level-level>` is
31- ``1`` or ``2`` (i.e. the :doc:`database profiler
31+ ``1`` or ``2`` (specifically, the :doc:`database profiler
3232 </tutorial/manage-the-database-profiler/>` is enabled), the
3333 :ref:`slowms <set-profiling-level-options-slowms>`,
3434 :ref:`sampleRate <set-profiling-level-options-sampleRate>` affect
3535 the behavior of both the profiler and the :option:`diagnostic log
3636 <mongod --logpath>`.
3737
3838 If the :ref:`database profiler level <set-profiling-level-level>` is
39- ``0`` (i.e. :doc:`database profiler
39+ ``0`` (specifically, :doc:`database profiler
4040 </tutorial/manage-the-database-profiler/>` is disabled), the
4141 :ref:`slowms <set-profiling-level-options-slowms>` and
4242 :ref:`sampleRate <set-profiling-level-options-sampleRate>`, affect
4343 only the diagnostic log.
4444
45- (* Starting in MongoDB 4.0*): For a :binary:`~bin.mongos` instance,
46- the method sets the ``slowms``, ``sampleRate`` and ``filter``
45+ Starting in MongoDB 4.0, for a :binary:`~bin.mongos` instance, the
46+ method sets the ``slowms``, ``sampleRate`` and ``filter``
4747 configuration settings, which configure how operations get written to
4848 the diagnostic log. You cannot enable the
4949 :doc:`/tutorial/manage-the-database-profiler` on a
@@ -62,6 +62,8 @@ Definition
6262 :method:`db.setProfilingLevel()` provides a wrapper around the
6363 :dbcommand:`profile` command.
6464
65+ .. include:: /includes/log-changes-to-database-profiler.rst
66+
6567Syntax
6668~~~~~~
6769
@@ -97,7 +99,7 @@ Parameters
9799
98100 .. include:: /includes/database-profiler-levels.rst
99101
100- Since profiling is not available on :binary:`~bin.mongos`,
102+ Because profiling is not available on :binary:`~bin.mongos`,
101103 :method:`db.setProfilingLevel()` cannot be used to set the profiling
102104 level to a value other than ``0`` on a :binary:`~bin.mongos` instance.
103105
@@ -128,9 +130,9 @@ Parameters
128130 For :binary:`~bin.mongod` instances, the setting affects both the
129131 diagnostic log and, if enabled, the profiler.
130132
131- For :binary:`~bin.mongos` instances, the setting affects the
132- diagnostic log only and not the profiler since profiling is not
133- available on :binary:`~bin.mongos`.
133+ For :binary:`~bin.mongos` instances, the setting affects
134+ the diagnostic log only and not the profiler because
135+ profiling is not available on :binary:`~bin.mongos`.
134136
135137 .. note::
136138 This argument affects the same setting as the configuration
@@ -149,9 +151,9 @@ Parameters
149151 For :binary:`~bin.mongod` instances, the setting affects both the
150152 diagnostic log and, if enabled, the profiler.
151153
152- For :binary:`~bin.mongos` instances, the setting affects the
153- diagnostic log only and not the profiler since profiling is not
154- available on :binary:`~bin.mongos`.
154+ For :binary:`~bin.mongos` instances, the setting affects
155+ the diagnostic log only and not the profiler because
156+ profiling is not available on :binary:`~bin.mongos`.
155157
156158 .. note::
157159 This argument affects the same setting as the configuration option
@@ -170,9 +172,9 @@ Parameters
170172 For :binary:`~bin.mongod` instances, the setting affects both the
171173 diagnostic log and, if enabled, the profiler.
172174
173- For :binary:`~bin.mongos` instances, the setting affects the
174- diagnostic log only and not the profiler since profiling is not
175- available on :binary:`~bin.mongos`.
175+ For :binary:`~bin.mongos` instances, the setting affects
176+ the diagnostic log only and not the profiler because
177+ profiling is not available on :binary:`~bin.mongos`.
176178
177179 For an example of a filter used to control logged
178180 operations, see :ref:`profiler-filter-example`.
0 commit comments