mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-04 18:46:55 +02:00
959dc927d3
functions, remove indent support, make sure all strings are marked translatable.
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* elog.h
|
|
* POSTGRES error logging definitions.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: elog.h,v 1.27 2001/06/08 21:16:49 petere Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef ELOG_H
|
|
#define ELOG_H
|
|
|
|
/* Error level codes */
|
|
#define NOTICE 0 /* random info, sent to frontend */
|
|
#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 DEBUG (-2) /* debug message */
|
|
|
|
/* temporary nonsense... */
|
|
#define STOP REALLYFATAL
|
|
#define LOG DEBUG
|
|
|
|
/* Configurable parameters */
|
|
#ifdef ENABLE_SYSLOG
|
|
extern int Use_syslog;
|
|
#endif
|
|
extern bool Log_timestamp;
|
|
extern bool Log_pid;
|
|
|
|
|
|
extern void elog(int lev, const char *fmt,...)
|
|
/* This extension allows gcc to check the format string for consistency with
|
|
the supplied arguments. */
|
|
__attribute__((format(printf, 2, 3)));
|
|
|
|
extern int DebugFileOpen(void);
|
|
|
|
#endif /* ELOG_H */
|