postgresql/src/include/utils/elog.h

32 lines
891 B
C
Raw Normal View History

/*-------------------------------------------------------------------------
*
* elog.h
* POSTGRES error logging definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: elog.h,v 1.13 1999/09/27 15:48:12 vadim Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef ELOG_H
#define ELOG_H
#define NOTICE 0 /* random info - no special action */
#define ERROR (-1) /* user error - return to known state */
#define FATAL 1 /* fatal error - abort process */
#define REALLYFATAL 2 /* take down the other backends with me */
#define STOP REALLYFATAL
#define DEBUG (-2) /* debug message */
#define LOG DEBUG
#define NOIND (-3) /* debug message, don't indent as far */
extern void elog(int lev, const char *fmt, ...);
1996-11-06 11:15:25 +01:00
#ifndef PG_STANDALONE
extern int DebugFileOpen(void);
1996-11-06 11:15:25 +01:00
#endif
#endif /* ELOG_H */