Browse Source

[3591] Small edits of logging documentation during review.

Stephen Morris 10 years ago
parent
commit
2e1a21fb4c
1 changed files with 46 additions and 16 deletions
  1. 46 16
      doc/guide/logging.xml

+ 46 - 16
doc/guide/logging.xml

@@ -8,7 +8,7 @@
     <title>Logging</title>
     <title>Logging</title>
 
 
     <section>
     <section>
-      <title>Logging configuration</title>
+      <title>Logging Configuration</title>
 
 
       <para>
       <para>
 
 
@@ -397,7 +397,7 @@ TODO; there's a ticket to determine these levels, see #1074
       </section>
       </section>
 
 
       <section>
       <section>
-        <title>Example Logger configurations</title>
+        <title>Example Logger Configurations</title>
 
 
         <para>
         <para>
           In this example we want to set the global logging to
           In this example we want to set the global logging to
@@ -532,25 +532,32 @@ file be created.</para>
     </section>
     </section>
 
 
     <section>
     <section>
-      <title>Environment variables and initial logging</title>
+      <title>Logging During Kea Startup</title>
 
 
       <para>
       <para>
-        Logging configuration is specified in the configuration file. However,
+        The logging configuration is specified in the configuration file.
-        there are several early initialization routines that are conducted even
+        However, when Kea starts, the file is not read until some way into the
-        before configuration file is read and applied. They also apply if
+        initialization process.  Prior to that, the logging settings are
-        the new configuration does not configure any logging.
+        set to default values, although it is possible to modify some
+        aspects of the settings by means of environment variables. Note
+        that in the absence of any logging configuration in the configuration
+        file, the settings of (possibly modified) default configuration will
+        persist while the program is running.
+      </para>
+      <para>
+        The following environment variables can be used to control the
+        behavio of logging during startup:
       </para>
       </para>
-      <para>There are several environment variables that control logging
-      behavior in the early phase of the bring up. Once configuration that hold
-      logging configuration is parsed and applied they no longer apply.</para>
 
 
           <variablelist>
           <variablelist>
           <varlistentry>
           <varlistentry>
           <term>KEA_LOCKFILE_DIR</term>
           <term>KEA_LOCKFILE_DIR</term>
           <listitem><para>
           <listitem><para>
               Specifies a directory where logging system should create its
               Specifies a directory where logging system should create its
-              lock file. If not specified, it is ${prefix}/var/run/kea, where
+              lock file. If not specified, it is
-              prefix defaults to /usr/local. This variable must not end
+              <replaceable>prefix</replaceable>/var/run/kea, where
+              <replaceable>prefix</replaceable> defaults to /usr/local.
+              This variable must not end
               with a slash. There is one special value: "none", which
               with a slash. There is one special value: "none", which
               instructs Kea to not create lock file at all. This may cause
               instructs Kea to not create lock file at all. This may cause
               issues if several processes log to the same file.
               issues if several processes log to the same file.
@@ -561,10 +568,33 @@ file be created.</para>
           <term>KEA_LOGGER_DESTINATION</term>
           <term>KEA_LOGGER_DESTINATION</term>
           <listitem><para>
           <listitem><para>
               Specifies logging output. There are several special values.
               Specifies logging output. There are several special values.
-              "stdout" means standard output. "stderr" means standard error.
+              <variablelist>
-              "syslog" means logging using syslog and a default name.
+                  <varlistentry>
-              "syslog:foo" syntax is also permitted. It will log via syslog
+                      <term>stdout</term>
-              using "foo" as a name. Any other value is treated as a name
+                      <listitem><para>
+                          Log to standard output.
+                      </para></listitem>
+                  </varlistentry>
+                  <varlistentry>
+                      <term>stderr</term>
+                      <listitem><para>
+                          Log to standard error.
+                      </para></listitem>
+                  </varlistentry>
+                  <varlistentry>
+                      <term>syslog<optional>:<replaceable>fac</replaceable></optional></term>
+                      <listitem><para>
+                          Log via syslog. The optional
+                          <replaceable>fac</replaceable> (which is
+                          separated from the word "syslog" by a colon)
+                          specifies the
+                          facility to be used for the log messages. Unless
+                          specified, messages will be logged using the
+                          facility "local0".
+                      </para></listitem>
+                  </varlistentry>
+              </variablelist>
+              Any other value is treated as a name
               of the output file. If not specified otherwise, Kea will log to
               of the output file. If not specified otherwise, Kea will log to
               standard output.
               standard output.
           </para></listitem>
           </para></listitem>