1 /*-------------------------------------------------------------------------
4 * POSTGRES error logging definitions.
7 * Copyright (c) 1994, Regents of the University of California
9 * $Id: elog.h,v 1.1 1996/08/28 01:58:52 scrappy Exp $
11 *-------------------------------------------------------------------------
16 #define NOTICE 0 /* random info - no special action */
17 #define WARN -1 /* Warning error - return to known state */
18 #define FATAL 1 /* Fatal error - abort process */
19 #define DEBUG -2 /* debug message */
20 #define NOIND -3 /* debug message, don't indent as far */
22 #define PTIME 0x100 /* prepend time to message */
23 #define POS 0x200 /* prepend source position to message */
24 #define USERMSG 0x400 /* send message to user */
25 #define TERM 0x800 /* send message to terminal */
26 #define DBLOG 0x1000 /* put message in per db log */
27 #define SLOG 0x2000 /* put message in system log */
28 #define ABORT 0x4000 /* abort process after logging */
30 #define ELOG_MAXLEN 4096
33 /* uncomment the following if you want your elog's to be timestamped */
34 /* #define ELOG_TIMESTAMPS */
36 extern void elog(int lev, const char *fmt, ...);