diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/sgml/maintenance.sgml | 4 | ||||
-rw-r--r-- | doc/src/sgml/runtime.sgml | 33 |
2 files changed, 18 insertions, 19 deletions
diff --git a/doc/src/sgml/maintenance.sgml b/doc/src/sgml/maintenance.sgml index 8318160c3f6..9dc89b1c5b8 100644 --- a/doc/src/sgml/maintenance.sgml +++ b/doc/src/sgml/maintenance.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.32 2004/03/15 14:21:30 momjian Exp $ +$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.33 2004/04/05 03:02:03 momjian Exp $ --> <chapter id="maintenance"> @@ -456,7 +456,7 @@ VACUUM The simplest production-grade approach to managing log output is to send it all to <application>syslog</> and let <application>syslog</> deal with file rotation. To do this, set the - configurations parameter <literal>syslog</> to 2 (to log to + configurations parameter <literal>log_destination</> to 'syslog' (to log to <application>syslog</> only) in <filename>postgresql.conf</>. Then you can send a <literal>SIGHUP</literal> signal to the <application>syslog</> daemon whenever you want to force it to diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 33684e6201e..f23772b8da7 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.256 2004/03/31 19:59:22 momjian Exp $ +$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.257 2004/04/05 03:02:03 momjian Exp $ --> <Chapter Id="runtime"> @@ -469,7 +469,7 @@ psql: could not connect to server: No such file or directory <programlisting> # This is a comment log_connections = yes -syslog = 2 +log_destination = 'syslog' search_path = '$user, public' </programlisting> One parameter is specified per line. The equal sign between name and @@ -497,7 +497,7 @@ search_path = '$user, public' A second way to set these configuration parameters is to give them as a command line option to the <command>postmaster</command>, such as: <programlisting> -postmaster -c log_connections=yes -c syslog=2 +postmaster -c log_connections=yes -c log_destination='syslog' </programlisting> Command-line options override any conflicting settings in <filename>postgresql.conf</filename>. @@ -1705,27 +1705,26 @@ SET ENABLE_SEQSCAN TO OFF; <primary>server log</primary> </indexterm> - <sect3 id="runtime-config-logging-syslog"> - <title>Syslog</title> + <sect3 id="runtime-config-logging-where"> + <title>Where to log</title> - <indexterm zone="runtime-config-logging-syslog"> - <primary>syslog</primary> + <indexterm zone="runtime-config-logging-where"> + <primary>where to log</primary> </indexterm> <variablelist> - <varlistentry id="guc-syslog" xreflabel="syslog"> - <term><varname>syslog</varname> (<type>integer</type>)</term> + <varlistentry id="guc-log-destination" xreflabel="log_destination"> + <term><varname>log_destination</varname> (<type>string</type>)</term> <listitem> <para> - <productname>PostgreSQL</productname> allows the use of - <systemitem>syslog</systemitem> for logging. If this option is - set to 1, messages go both to <systemitem>syslog</> and the - standard output. A setting of 2 sends output only to - <systemitem>syslog</>. (Some messages will still go to the - standard output/error.) The default is 0, which means - <systemitem>syslog</> is off. This option must be set at server - start. + <productname>PostgreSQL</productname> supports several methods + for loggning, including <systemitem>stderr</systemitem> and + <systemitem>syslog</systemitem>. On Windows, + <systemitem>eventlog</systemitem> is also supported. Set this + option to a list of desired log destinations separated by a + comma. The default is to log to <systemitem>stderr</systemitem> + only. This option must be set at server start. </para> </listitem> </varlistentry> |