mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
906 B
40 lines
906 B
![]()
21 years ago
|
/*-------------------------------------------------------------------------
|
||
|
*
|
||
|
* syslogger.h
|
||
|
* Exports from postmaster/syslogger.c.
|
||
|
*
|
||
|
* Copyright (c) 2004, PostgreSQL Global Development Group
|
||
|
*
|
||
|
* $PostgreSQL: pgsql/src/include/postmaster/syslogger.h,v 1.1 2004/08/05 23:32:12 tgl Exp $
|
||
|
*
|
||
|
*-------------------------------------------------------------------------
|
||
|
*/
|
||
|
#ifndef _SYSLOGGER_H
|
||
|
#define _SYSLOGGER_H
|
||
|
|
||
|
/* GUC options */
|
||
|
extern bool Redirect_stderr;
|
||
|
extern int Log_RotationAge;
|
||
|
extern int Log_RotationSize;
|
||
|
extern char *Log_directory;
|
||
|
extern char *Log_filename_prefix;
|
||
|
|
||
|
extern bool am_syslogger;
|
||
|
|
||
|
#ifndef WIN32
|
||
|
extern int syslogPipe[2];
|
||
|
#else
|
||
|
extern HANDLE syslogPipe[2];
|
||
|
#endif
|
||
|
|
||
|
|
||
|
extern int SysLogger_Start(void);
|
||
|
|
||
|
extern void write_syslogger_file(const char *buffer, int count);
|
||
|
|
||
|
#ifdef EXEC_BACKEND
|
||
|
extern void SysLoggerMain(int argc, char *argv[]);
|
||
|
#endif
|
||
|
|
||
|
#endif /* _SYSLOGGER_H */
|