]> granicus.if.org Git - postgresql/blob - src/include/utils/elog.h
More cleanups of the include files
[postgresql] / src / include / utils / elog.h
1 /*-------------------------------------------------------------------------
2  *
3  * elog.h--
4  *    POSTGRES error logging definitions.
5  *
6  *
7  * Copyright (c) 1994, Regents of the University of California
8  *
9  * $Id: elog.h,v 1.1 1996/08/28 01:58:52 scrappy Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef ELOG_H
14 #define ELOG_H
15
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 */
21
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 */
29
30 #define ELOG_MAXLEN 4096
31
32
33 /* uncomment the following if you want your elog's to be timestamped */
34 /* #define ELOG_TIMESTAMPS */
35
36 extern void elog(int lev, const char *fmt, ...);
37
38 #endif  /* ELOG_H */