1 /*-------------------------------------------------------------------------
4 * POSTGRES error logging definitions.
7 * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $Id: elog.h,v 1.25 2001/01/24 19:43:28 momjian Exp $
12 *-------------------------------------------------------------------------
17 /* Error level codes */
18 #define NOTICE 0 /* random info - no special action */
19 #define ERROR (-1) /* user error - return to known state */
20 #define FATAL 1 /* fatal error - abort process */
21 #define REALLYFATAL 2 /* take down the other backends with me */
22 #define STOP REALLYFATAL
23 #define DEBUG (-2) /* debug message */
25 #define NOIND (-3) /* debug message, don't indent as far */
27 /* Configurable parameters */
29 extern int Use_syslog;
31 extern bool Log_timestamp;
36 extern void elog(int lev, const char *fmt, ...);
39 /* This extension allows gcc to check the format string for consistency with
40 the supplied arguments. */
41 extern void elog(int lev, const char *fmt, ...)
42 __attribute__((format(printf, 2, 3)));
46 extern int DebugFileOpen(void);