Skip to content

Commit 88b6563

Browse files
kallimachoskay-kim
authored andcommitted
DOCS-8981: Document maxLogSizeKB parameter
Also fix two minor typos.
1 parent fdc1ca0 commit 88b6563

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

source/reference/command/setParameter.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ setParameter
3434
- :parameter:`logComponentVerbosity`
3535
- :parameter:`logLevel`
3636
- :parameter:`logUserIds`
37+
- :parameter:`maxLogSizeKB`
3738
- :parameter:`quiet`
3839
- :parameter:`traceExceptions`
3940

source/reference/parameters.txt

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,26 @@ Logging Parameters
736736

737737
Disabled by default.
738738

739+
.. parameter:: maxLogSizeKB
740+
741+
.. versionadded:: 3.4
742+
743+
|both|
744+
745+
*Type*: integer
746+
747+
*Default*: 10
748+
749+
Specifies the maximum size, in kilobytes, for a log line. Lines exceeding
750+
this limit print only the beginning and end of the line, excising the middle
751+
portion.
752+
753+
For example, the following sets the maximum size to ``20`` kilobytes:
754+
755+
.. code-block:: sh
756+
757+
mongod --setParameter maxLogSizeKB=20
758+
739759
.. parameter:: quiet
740760

741761
|both|
@@ -846,7 +866,7 @@ The following parameters support :term:`diagnostic data capture (FTDC)
846866

847867
|mongos-only|
848868

849-
Specify the the directory for the diagnostic directory for
869+
Specify the directory for the diagnostic directory for
850870
:program:`mongos`. If the directory does not exist,
851871
:program:`mongos` creates the directory.
852872

@@ -882,7 +902,7 @@ The following parameters support :term:`diagnostic data capture (FTDC)
882902
*Default*: 200
883903

884904
Specifies the maximum size, in megabytes, of the ``diagnostic.data``
885-
directory . If directory size exceeds this number, the oldest
905+
directory. If directory size exceeds this number, the oldest
886906
:ref:`diagnostic files in the directory
887907
<3.2-diagnostic-data-capture>` are automatically deleted based on
888908
the timestamp in the file name.

0 commit comments

Comments
 (0)