/* * Copyright (c) 1995, 1996 Gunther Schadow. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* * Site dependent configuration */ #ifndef PG_SITE_H_ #define PG_SITE_H_ /* * LOGGING FACILITY */ #ifndef SYSLOG /* * If you want logging messages of type L_AUDIT, L_ERROR and L_FATAL to * go to the "syslog", define this. Uses the facility "LOG_AUTH", and the * priorities LOG_NOTICE, LOG_ERR and LOG_ALERT, respectively. * Note that this feature can be turned on regardless if your system has * syslog(3) or if you defined NEED_SYSLOG. */ #define SYSLOG 1 #endif #ifndef SYSLOG_FC /* * This is the facility used for logging. Ususally, this will be * LOG_AUTH, but on some systems, this may not exist, try LOG_DAEMON * instead (or look into the syslog manpage for available options) */ #define SYSLOG_FC LOG_AUTH #endif #ifndef CONSOLE /* * system console - if a severe error happens at startup, write * a message to this file and aborts. */ #define CONSOLE "/dev/tty" #endif #ifndef ADMIN /* * The administrator - if a severe error happens (lprintf called * with log_level L_FATAL) and writing to CONSOLE is not possible, * the logfile will be mailed to him */ #define ADMIN "root" #endif #ifndef MAILER /* * The mailer program to use for passing urgent log messages to the * administrator */ #define MAILER "/usr/sbin/sendmail" #endif #ifndef LOG_PATH /* * Default name of the log file */ #define LOG_PATH "/tmp/hl7.log" #endif #ifndef LOG_LEVEL /* * Default log error level threshold. Possible error levels are * L_FATAL, L_ERROR, L_WARN, L_AUDIT, L_MESG, L_NOISE, L_JUNK. */ #define LOG_LEVEL L_JUNK #endif #ifndef LOG_CR_NEWLINE /* * Whether "\n"s and "\c"s in the messages should start a new line * in the logfile */ #define LOG_CR_NEWLINE #endif #endif /* ! PG_SITE_H_ */