diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-04-05 03:02:11 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-04-05 03:02:11 +0000 |
commit | 6165bbab8cb3518269e24bf9ced0be443f05e66c (patch) | |
tree | 2ea742dd047cbe67ad348f287b4780a8f78e29a0 /src/include | |
parent | a12fc7dae6a92746b2aac41920973de089f4403e (diff) | |
download | postgresql-6165bbab8cb3518269e24bf9ced0be443f05e66c.tar.gz postgresql-6165bbab8cb3518269e24bf9ced0be443f05e66c.zip |
Remove 'syslog' GUC variable, and add more logical 'log_destination'
variable to control logoutput location on Unix and Win32.
Magnus Hagander
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/utils/elog.h | 11 | ||||
-rw-r--r-- | src/include/utils/guc_tables.h | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index 24db6696e66..e3c8f9152ab 100644 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/elog.h,v 1.67 2004/03/21 22:29:11 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/elog.h,v 1.68 2004/04/05 03:02:10 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -176,11 +176,12 @@ typedef enum extern PGErrorVerbosity Log_error_verbosity; extern char *Log_line_prefix; +extern unsigned int Log_destination; -#ifdef HAVE_SYSLOG -extern int Use_syslog; -#endif - +/* Log destination bitmap */ +#define LOG_DESTINATION_STDERR 1 +#define LOG_DESTINATION_SYSLOG 2 +#define LOG_DESTINATION_EVENTLOG 4 /* Other exported functions */ extern void DebugFileOpen(void); diff --git a/src/include/utils/guc_tables.h b/src/include/utils/guc_tables.h index 47e0339dafa..1b99bf8159d 100644 --- a/src/include/utils/guc_tables.h +++ b/src/include/utils/guc_tables.h @@ -7,7 +7,7 @@ * * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/utils/guc_tables.h,v 1.9 2004/01/19 19:04:40 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/guc_tables.h,v 1.10 2004/04/05 03:02:11 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -36,7 +36,7 @@ enum config_group QUERY_TUNING_GEQO, QUERY_TUNING_OTHER, LOGGING, - LOGGING_SYSLOG, + LOGGING_WHERE, LOGGING_WHEN, LOGGING_WHAT, STATS, |