1 /*-------------------------------------------------------------------------
4 * POSTGRES error logging definitions.
7 * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $Id: elog.h,v 1.18 2000/06/04 15:06:34 petere Exp $
12 *-------------------------------------------------------------------------
17 #define NOTICE 0 /* random info - no special action */
18 #define ERROR (-1) /* user error - return to known state */
19 #define FATAL 1 /* fatal error - abort process */
20 #define REALLYFATAL 2 /* take down the other backends with me */
21 #define STOP REALLYFATAL
22 #define DEBUG (-2) /* debug message */
24 #define NOIND (-3) /* debug message, don't indent as far */
27 extern int Use_syslog;
30 extern bool Log_timestamp;
34 extern void elog(int lev, const char *fmt,...);
37 /* This extension allows gcc to check the format string for consistency with
38 the supplied arguments. */
39 extern void elog(int lev, const char *fmt,...) __attribute__((format(printf, 2, 3)));
44 extern int DebugFileOpen(void);