]> granicus.if.org Git - postgresql/blob - src/include/utils/elog.h
Transaction log manager core code.
[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.13 1999/09/27 15:48:12 vadim Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef ELOG_H
14 #define ELOG_H
15
16 #define NOTICE  0                               /* random info - no special action */
17 #define ERROR   (-1)                    /* user error - return to known state */
18 #define FATAL   1                               /* fatal error - abort process */
19 #define REALLYFATAL     2                       /* take down the other backends with me */
20 #define STOP    REALLYFATAL
21 #define DEBUG   (-2)                    /* debug message */
22 #define LOG             DEBUG
23 #define NOIND   (-3)                    /* debug message, don't indent as far */
24
25 extern void elog(int lev, const char *fmt, ...);
26
27 #ifndef PG_STANDALONE
28 extern int      DebugFileOpen(void);
29 #endif
30
31 #endif   /* ELOG_H */