From: Christophe Jaillet Date: Thu, 8 Sep 2022 19:21:29 +0000 (+0000) Subject: Add some syntax highlight to some directive usage examples. X-Git-Tag: 2.4.55-rc1-candidate~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d98ebc47983a7008c896f9cd4bb08098af38afb7;p=thirdparty%2Fapache%2Fhttpd.git Add some syntax highlight to some directive usage examples. Fix a small style issue. (r1903933 in trunk) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1903934 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/programs/rotatelogs.xml b/docs/manual/programs/rotatelogs.xml index e1e6f1ce21f..f152721af68 100644 --- a/docs/manual/programs/rotatelogs.xml +++ b/docs/manual/programs/rotatelogs.xml @@ -191,7 +191,9 @@ an offset.
Examples + CustomLog "|bin/rotatelogs /var/log/logfile 86400" common +

This creates the files /var/log/logfile.nnnn where nnnn is @@ -201,7 +203,9 @@ an offset. time (here after 24 hours) a new log is started.

+ CustomLog "|bin/rotatelogs -l /var/log/logfile.%Y.%m.%d 86400" common +

This creates the files /var/log/logfile.yyyy.mm.dd where @@ -209,14 +213,18 @@ an offset. Logging will switch to a new file every day at midnight, local time.

+ CustomLog "|bin/rotatelogs /var/log/logfile 5M" common +

This configuration will rotate the logfile whenever it reaches a size of 5 megabytes.

+ ErrorLog "|bin/rotatelogs /var/log/errorlog.%Y-%m-%d-%H_%M_%S 5M" +

This configuration will rotate the error logfile whenever it reaches a size of 5 megabytes, and the suffix to the logfile name @@ -224,10 +232,12 @@ an offset. errorlog.YYYY-mm-dd-HH_MM_SS.

+ CustomLog "|bin/rotatelogs -t /var/log/logfile 86400" common + -

This creates the file /var/log/logfile, truncating the file at +

This creates the file /var/log/logfile, truncating the file at startup and then truncating the file once per day. It is expected in this scenario that a separate process (such as tail) would process the file in real time.