[deployment-guide/comm-rel: 658/727] updated Log Files chapter

Jaromir Hradilek jhradile at fedoraproject.org
Tue Oct 19 13:21:01 UTC 2010


commit f312d9fb98a861ed9ebe9c103c3c01ba139e500f
Author: Martin Prpic <mprpic at redhat.com>
Date:   Wed Sep 15 13:15:42 2010 +0200

    updated Log Files chapter

 en-US/Log_Files.xml |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/en-US/Log_Files.xml b/en-US/Log_Files.xml
index 662c17b..0d5d46b 100644
--- a/en-US/Log_Files.xml
+++ b/en-US/Log_Files.xml
@@ -66,7 +66,16 @@ weekly
 rotate 4
 # uncomment this if you want your log files compressed
 compress
-
+      </screen>
+      <para>
+      All of the lines in the sample configuration file define global options that apply to every log file. In our example, log files are rotated weekly, rotated log files are kept for the duration of 4 weeks, and all rotated log files are compressed by <application>gzip</application> into the <literal>.gz</literal> format. Any lines that begin with a hash mark (#) are comments and are not processed</para> 
+      <para>
+      You may define configuration options for a specific log file and place it under the global options. However, it is advisable to create a separate configuration file for any specific log file in the <filename>/etc/logrotate.d/</filename> directory and define any configuration options there.
+      </para>
+      <para>
+      The following is an example of a configuration file placed in the <filename>/etc/logrotate.d/</filename> directory:
+      </para>
+      <screen>
 /var/log/messages {
     rotate 5
     weekly
@@ -76,13 +85,10 @@ compress
 }
       </screen>
       <para>
-      The first few lines in the sample configuration file define global options that apply to every log file. In our example, log files are rotated weekly, rotated log files are kept for the duration of 4 weeks, and all rotated log files are compressed by <application>gzip</application> into the <literal>.gz</literal> format. Any lines that begin with a hash mark (#) are comments and are not processed. 
-      </para>
-      <para>
-      The next few lines in the sample configuration file are specific for the <filename>/var/log/messages</filename> log file only. The settings specified here override the global settings where possible. Thus the rotated log files will be kept for five weeks instead of four weeks.
+      The configuration options in this file are specific for the <filename>/var/log/messages</filename> log file only. The settings specified here override the global settings where possible. Thus the rotated <filename>/var/log/messages</filename> log files will be kept for five weeks instead of four weeks as was defined in the global options.
       </para>
       <para>
-      The following is a list of some of the directives you can specify in your <filename>/etc/logrotate.conf</filename> configuration file:
+      The following is a list of some of the directives you can specify in your <application>logrotate</application> configuration file:
       </para>
       <itemizedlist>
         <listitem>
@@ -192,7 +198,7 @@ compress
         <command>gnome-system-log</command>
       </primary>
       <see>
-        <application>Log Viewer</application>
+        <application>Log File Viewer</application>
       </see>
     </indexterm>
     <para>To view system log files in an interactive, real-time application, use the <application>Log File Viewer</application>.
@@ -361,7 +367,7 @@ compress
     <note>
       <title>Note</title>
         <para>
-          The <application>Log File Viewer</application> also allows you to open zipped in the <literal>.gz</literal> format.
+          The <application>Log File Viewer</application> also allows you to open log files zipped in the <literal>.gz</literal> format.
         </para>
     </note>
   </section>


More information about the docs-commits mailing list