Skip to content

Commit 195bf9a

Browse files
author
Ed Costello
committed
DOCS-46 expand a bit on what logRotate does
1 parent da84261 commit 195bf9a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/reference/command/logRotate.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ logRotate
2323

2424
kill -SIGUSR1 2200
2525

26-
The rotated files will have a timestamp of the form ``YYYY-MM-DD``\T ``HH-MM-SS``
26+
27+
:dbcommand:`logRotate` will cause the existing log file to be renamed
28+
by appending the current timestamp to the filename. A new log file will be created
29+
with the name which was specified by the :option:`--logpath` option to :program:`mongod`
30+
or :program:`mongos`.
31+
The rotated files will have a timestamp of the form yyyy-mm-ddThh-mm-ss
2732
appended to the filename.
2833

2934

0 commit comments

Comments
 (0)