You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2022/09/08 19:20:17 UTC

svn commit: r1903933 - /httpd/httpd/trunk/docs/manual/programs/rotatelogs.xml

Author: jailletc36
Date: Thu Sep  8 19:20:17 2022
New Revision: 1903933

URL: http://svn.apache.org/viewvc?rev=1903933&view=rev
Log:
Add some syntax highlight to some directive usage examples.

Fix a small style issue.

Modified:
    httpd/httpd/trunk/docs/manual/programs/rotatelogs.xml

Modified: httpd/httpd/trunk/docs/manual/programs/rotatelogs.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/programs/rotatelogs.xml?rev=1903933&r1=1903932&r2=1903933&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/programs/rotatelogs.xml (original)
+++ httpd/httpd/trunk/docs/manual/programs/rotatelogs.xml Thu Sep  8 19:20:17 2022
@@ -191,7 +191,9 @@ an offset.</dd>
 <section id="examples"><title>Examples</title>
 
 <example>
+<highlight language="config">
      CustomLog "|bin/rotatelogs /var/log/logfile 86400" common
+</highlight>
 </example>
 
      <p>This creates the files /var/log/logfile.nnnn where nnnn  is
@@ -201,7 +203,9 @@ an offset.</dd>
      time (here after 24 hours) a new log is started.</p>
 
 <example>
+<highlight language="config">
      CustomLog "|bin/rotatelogs -l /var/log/logfile.%Y.%m.%d 86400" common
+</highlight>
 </example>
 
      <p>This creates the files /var/log/logfile.yyyy.mm.dd where
@@ -209,14 +213,18 @@ an offset.</dd>
      Logging will switch to a new file every day at midnight, local time.</p>
 
 <example>
+<highlight language="config">
      CustomLog "|bin/rotatelogs /var/log/logfile 5M" common
+</highlight>
 </example>
 
      <p>This configuration will rotate the logfile whenever it reaches
      a size of 5 megabytes.</p>
 
 <example>
+<highlight language="config">
      ErrorLog "|bin/rotatelogs /var/log/errorlog.%Y-%m-%d-%H_%M_%S 5M"
+</highlight>
 </example>
      <p>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.</dd>
      <code>errorlog.YYYY-mm-dd-HH_MM_SS</code>.</p>
 
 <example>
+<highlight language="config">
      CustomLog "|bin/rotatelogs -t /var/log/logfile 86400" common
+</highlight>
 </example>
 
-     <p>This creates the file /var/log/logfile, truncating the file at
+     <p>This creates the file <code>/var/log/logfile</code>, 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.</p>