From 6165bbab8cb3518269e24bf9ced0be443f05e66c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 5 Apr 2004 03:02:11 +0000 Subject: Remove 'syslog' GUC variable, and add more logical 'log_destination' variable to control logoutput location on Unix and Win32. Magnus Hagander --- doc/src/sgml/maintenance.sgml | 4 ++-- doc/src/sgml/runtime.sgml | 33 ++++++++++++++++----------------- 2 files changed, 18 insertions(+), 19 deletions(-) (limited to 'doc/src/sgml') 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 @@ @@ -456,7 +456,7 @@ VACUUM The simplest production-grade approach to managing log output is to send it all to syslog and let syslog deal with file rotation. To do this, set the - configurations parameter syslog to 2 (to log to + configurations parameter log_destination to 'syslog' (to log to syslog only) in postgresql.conf. Then you can send a SIGHUP signal to the 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 @@ @@ -469,7 +469,7 @@ psql: could not connect to server: No such file or directory # This is a comment log_connections = yes -syslog = 2 +log_destination = 'syslog' search_path = '$user, public' 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 postmaster, such as: -postmaster -c log_connections=yes -c syslog=2 +postmaster -c log_connections=yes -c log_destination='syslog' Command-line options override any conflicting settings in postgresql.conf. @@ -1705,27 +1705,26 @@ SET ENABLE_SEQSCAN TO OFF; server log - - Syslog + + Where to log - - syslog + + where to log - - syslog (integer) + + log_destination (string) - PostgreSQL allows the use of - syslog for logging. If this option is - set to 1, messages go both to syslog and the - standard output. A setting of 2 sends output only to - syslog. (Some messages will still go to the - standard output/error.) The default is 0, which means - syslog is off. This option must be set at server - start. + PostgreSQL supports several methods + for loggning, including stderr and + syslog. On Windows, + eventlog is also supported. Set this + option to a list of desired log destinations separated by a + comma. The default is to log to stderr + only. This option must be set at server start. -- cgit v1.2.3