From 942b075092dc8634c38e1ead13bcd4f921f1ae9f Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 21 Nov 2007 00:00:12 +0000 Subject: [PATCH] correct the order of filesize and offset descriptions 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 | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/docs/manual/programs/rotatelogs.xml b/docs/manual/programs/rotatelogs.xml index 5e8c65d3fc..acfae444f5 100644 --- a/docs/manual/programs/rotatelogs.xml +++ b/docs/manual/programs/rotatelogs.xml @@ -27,7 +27,8 @@

rotatelogs is a simple program for use in - conjunction with Apache's piped logfile feature.

+ conjunction with Apache's piped logfile feature. It supports + rotation based on a time interval or maximum size of the log.

Synopsis @@ -57,11 +58,24 @@ includes any '%' characters, it is treated as a format string for strftime(3). Otherwise, the suffix .nnnnnnnnnn is automatically added and is the time in seconds. Both formats compute the start time from the beginning of -the current period. +the current period. For example, if a rotation time of 86400 is +specified, the hour, minute, and second fields created by +strftime(3) format will all be zero, referring to the +beginning of the current 24-hour period (midnight).
rotationtime
-
The time between log file rotations in seconds.
+
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.)
+ +
filesizeM
+ +
The maximum file size in megabytes followed by the letter +M to specify size rather than time.
offset
@@ -71,11 +85,6 @@ UTC -5 hours, specify a value of -300 for this argument. In most cases, -l should be used instead of specifying an offset. -
filesizeM
- -
The maximum file size in megabytes followed by the letter -M to specify size rather than time. Use this parameter -in place of rotationtime.
-- 2.50.1