1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* elog.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* POSTGRES error logging definitions.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1999-09-27 17:48:12 +02:00
|
|
|
* $Id: elog.h,v 1.13 1999/09/27 15:48:12 vadim Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#ifndef ELOG_H
|
1996-08-28 03:59:28 +02:00
|
|
|
#define ELOG_H
|
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
#define NOTICE 0 /* random info - no special action */
|
1999-09-11 21:06:42 +02:00
|
|
|
#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 */
|
1999-09-27 17:48:12 +02:00
|
|
|
#define STOP REALLYFATAL
|
1999-09-11 21:06:42 +02:00
|
|
|
#define DEBUG (-2) /* debug message */
|
1999-09-27 17:48:12 +02:00
|
|
|
#define LOG DEBUG
|
1999-09-11 21:06:42 +02:00
|
|
|
#define NOIND (-3) /* debug message, don't indent as far */
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1999-09-11 21:06:42 +02:00
|
|
|
extern void elog(int lev, const char *fmt, ...);
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1996-11-06 11:15:25 +01:00
|
|
|
#ifndef PG_STANDALONE
|
1999-09-11 21:06:42 +02:00
|
|
|
extern int DebugFileOpen(void);
|
1996-11-06 11:15:25 +01:00
|
|
|
#endif
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* ELOG_H */
|