mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-16 05:50:45 +02:00
0a54de8faf
configuration options `Log_timestamp' and `Log_pid'.
49 lines
1.3 KiB
C
49 lines
1.3 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* elog.h
|
|
* POSTGRES error logging definitions.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: elog.h,v 1.18 2000/06/04 15:06:34 petere Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef ELOG_H
|
|
#define ELOG_H
|
|
|
|
#define NOTICE 0 /* random info - no special action */
|
|
#define ERROR (-1) /* user error - return to known state */
|
|
#define FATAL 1 /* fatal error - abort process */
|
|
#define REALLYFATAL 2 /* take down the other backends with me */
|
|
#define STOP REALLYFATAL
|
|
#define DEBUG (-2) /* debug message */
|
|
#define LOG DEBUG
|
|
#define NOIND (-3) /* debug message, don't indent as far */
|
|
|
|
#ifdef ENABLE_SYSLOG
|
|
extern int Use_syslog;
|
|
#endif
|
|
|
|
extern bool Log_timestamp;
|
|
extern bool Log_pid;
|
|
|
|
#ifndef __GNUC__
|
|
extern void elog(int lev, const char *fmt,...);
|
|
|
|
#else
|
|
/* This extension allows gcc to check the format string for consistency with
|
|
the supplied arguments. */
|
|
extern void elog(int lev, const char *fmt,...) __attribute__((format(printf, 2, 3)));
|
|
|
|
#endif
|
|
|
|
#ifndef PG_STANDALONE
|
|
extern int DebugFileOpen(void);
|
|
|
|
#endif
|
|
|
|
#endif /* ELOG_H */
|