Skip to content

Commit c54a335

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

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
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: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,26 @@ Logging Parameters
721721

722722
Disabled by default.
723723

724+
.. parameter:: maxLogSizeKB
725+
726+
.. versionadded:: 3.4
727+
728+
|both|
729+
730+
*Type*: integer
731+
732+
*Default*: 10
733+
734+
Specifies the maximum size, in kilobytes, for a log line. Lines exceeding
735+
this limit print only the beginning and end of the line, excising the middle
736+
portion.
737+
738+
For example, the following sets the maximum size to ``20`` kilobytes:
739+
740+
.. code-block:: sh
741+
742+
mongod --setParameter maxLogSizeKB=20
743+
724744
.. parameter:: quiet
725745

726746
|both|
@@ -817,7 +837,7 @@ parameters:
817837
|mongod-only|
818838

819839
Specifies the maximum size, in megabytes, of the ``diagnostic.data``
820-
directory . If directory size exceeds this number, the oldest
840+
directory. If directory size exceeds this number, the oldest
821841
:ref:`diagnostic files in the directory
822842
<3.2-diagnostic-data-capture>` are automatically deleted based on
823843
the timestamp in the file name.

0 commit comments

Comments
 (0)