File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
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 @@ -721,6 +721,26 @@ Logging Parameters
721
721
722
722
Disabled by default.
723
723
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
+
724
744
.. parameter:: quiet
725
745
726
746
|both|
@@ -817,7 +837,7 @@ parameters:
817
837
|mongod-only|
818
838
819
839
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
821
841
:ref:`diagnostic files in the directory
822
842
<3.2-diagnostic-data-capture>` are automatically deleted based on
823
843
the timestamp in the file name.
You can’t perform that action at this time.
0 commit comments