From 2b5953007072e3a7629b2fc7174b97ae4d50006d Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Mon, 28 Mar 2022 00:07:16 +0000 Subject: [PATCH] Merge r1899269 from trunk: add -n warnings/quirks https://bz.apache.org/bugzilla/show_bug.cgi?id=65980 [skip ci] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1899270 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/programs/rotatelogs.xml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/manual/programs/rotatelogs.xml b/docs/manual/programs/rotatelogs.xml index ba93a41795c..e1e6f1ce21f 100644 --- a/docs/manual/programs/rotatelogs.xml +++ b/docs/manual/programs/rotatelogs.xml @@ -117,9 +117,16 @@ processed in real time by a further tool in the chain.
Create log file for each interval, even if empty.
-n number-of-files
-
Use a circular list of filenames without timestamps. -With -n 3, the series of log files opened would be -"logfile", "logfile.1", "logfile.2", then overwriting "logfile". +
Use a circular list of filenames without timestamps. This option overwrites +log files at startup and during rotation. With -n 3, the series of log +files opened would be "logfile", "logfile.1", "logfile.2", then overwriting +"logfile". +
+When this program first opens "logfile", the file will only be truncated if -t is also provided. Every subsequent rotation will +always begin with truncation of the target file. For size based rotation without -t and existing log files in place, +this option may result in unintuitive behavior such as initial log entries being sent to "logfile.1", and entries in "logfile.1" not being preserved +even if later "logfile.n" have not yet been used. +
Available in 2.4.5 and later.
logfile
-- 2.47.2