File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ setParameter
34
34
- :parameter:`logComponentVerbosity`
35
35
- :parameter:`logLevel`
36
36
- :parameter:`logUserIds`
37
+ - :parameter:`maxLogSizeKB`
37
38
- :parameter:`quiet`
38
39
- :parameter:`traceExceptions`
39
40
Original file line number Diff line number Diff line change @@ -736,6 +736,26 @@ Logging Parameters
736
736
737
737
Disabled by default.
738
738
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
+
739
759
.. parameter:: quiet
740
760
741
761
|both|
@@ -846,7 +866,7 @@ The following parameters support :term:`diagnostic data capture (FTDC)
846
866
847
867
|mongos-only|
848
868
849
- Specify the the directory for the diagnostic directory for
869
+ Specify the directory for the diagnostic directory for
850
870
:program:`mongos`. If the directory does not exist,
851
871
:program:`mongos` creates the directory.
852
872
@@ -882,7 +902,7 @@ The following parameters support :term:`diagnostic data capture (FTDC)
882
902
*Default*: 200
883
903
884
904
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
886
906
:ref:`diagnostic files in the directory
887
907
<3.2-diagnostic-data-capture>` are automatically deleted based on
888
908
the timestamp in the file name.
You can’t perform that action at this time.
0 commit comments