|
|
|
@ -16,26 +16,21 @@
|
|
|
|
|
|
|
|
|
|
#include "confread.h"
|
|
|
|
|
|
|
|
|
|
/* enable this to use syslog facility */
|
|
|
|
|
|
|
|
|
|
/* #define USE_SYSLOG */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum { LOG_MODE_FILE, LOG_MODE_SYSLOG, LOG_MODE_MIXED };
|
|
|
|
|
|
|
|
|
|
enum { LOG_FILE_DAEMON, LOG_FILE_SESSION, LOG_FILE_DEBUG, LOG_FILE_HISTORY };
|
|
|
|
|
|
|
|
|
|
enum {
|
|
|
|
|
LOG_EMERG = 0, /* system is unusable */
|
|
|
|
|
LOG_ALERT = 1, /* action must be taken immediately */
|
|
|
|
|
LOG_CRIT = 2, /* critical conditions */
|
|
|
|
|
LOG_ERR = 3, /* error conditions */
|
|
|
|
|
LOG_WARNING = 4, /* warning conditions */
|
|
|
|
|
LOG_NOTICE = 5, /* normal but significant condition */
|
|
|
|
|
LOG_INFO = 6, /* informational */
|
|
|
|
|
LOG_DEBUG = 7 /* debug-level messages */
|
|
|
|
|
};
|
|
|
|
|
// enum {
|
|
|
|
|
// LOG_EMERG = 0, /* system is unusable */
|
|
|
|
|
// LOG_ALERT = 1, /* action must be taken immediately */
|
|
|
|
|
// LOG_CRIT = 2, /* critical conditions */
|
|
|
|
|
// LOG_ERR = 3, /* error conditions */
|
|
|
|
|
// LOG_WARNING = 4, /* warning conditions */
|
|
|
|
|
// LOG_NOTICE = 5, /* normal but significant condition */
|
|
|
|
|
// LOG_INFO = 6, /* informational */
|
|
|
|
|
// LOG_DEBUG = 7 /* debug-level messages */
|
|
|
|
|
//};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
# define D_CONFIG 0x0000001L
|
|
|
|
|