]> granicus.if.org Git - apache/commitdiff
correct the order of filesize and offset descriptions
authorJeff Trawick <trawick@apache.org>
Wed, 21 Nov 2007 00:00:12 +0000 (00:00 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 21 Nov 2007 00:00:12 +0000 (00:00 +0000)
according to the current syntax diagram

try to clear up occasional confusion about the
timestamps used in filenames when rotation is based
on a time interval

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@596884 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/programs/rotatelogs.xml

index 5e8c65d3fc7841984faabf4843faefb0fb78a684..acfae444f5830597aaf0bbbe31d5cf351d6b3d23 100644 (file)
@@ -27,7 +27,8 @@
 
 <summary>
      <p><code>rotatelogs</code> is a simple program for use in
-     conjunction with Apache's piped logfile feature.</p>
+     conjunction with Apache's piped logfile feature.  It supports
+     rotation based on a time interval or maximum size of the log.</p>
 </summary>
 
 <section id="synopsis"><title>Synopsis</title>
@@ -57,11 +58,24 @@ includes any '%' characters, it is treated as a format string for
 <code>strftime(3)</code>.  Otherwise, the suffix
 <var>.nnnnnnnnnn</var> is automatically added and is the time in
 seconds.  Both formats compute the start time from the beginning of
-the current period.</dd>
+the current period.  For example, if a rotation time of 86400 is 
+specified, the hour, minute, and second fields created by
+<code>strftime(3)</code> format will all be zero, referring to the
+beginning of the current 24-hour period (midnight).</dd>
 
 <dt><code><var>rotationtime</var></code></dt>
 
-<dd>The time between log file rotations in seconds.</dd>
+<dd>The time between log file rotations in seconds.  The rotation
+occurs at the beginning of this interval.  For example, if the
+rotation time is 3600, the log file will be rotated at the beginning
+of every hour; if the rotation time is 86400, the log file will be
+rotated every night at midnight.  (If no data is logged during an
+interval, no file will be created.)</dd>
+
+<dt><code><var>filesize</var>M</code></dt>
+
+<dd>The maximum file size in megabytes followed by the letter
+<code>M</code> to specify size rather than time.</dd>
 
 <dt><code><var>offset</var></code></dt>
 
@@ -71,11 +85,6 @@ UTC -5 hours, specify a value of <code>-300</code> for this argument.
 In most cases, <code>-l</code> should be used instead of specifying
 an offset.</dd>
 
-<dt><code><var>filesize</var>M</code></dt>
-
-<dd>The maximum file size in megabytes followed by the letter
-<code>M</code> to specify size rather than time.  Use this parameter
-in place of rotationtime.</dd>
 </dl>
 </section>