1997-10-26 01:04:02 +00:00
|
|
|
/*
|
1997-11-22 03:37:54 +00:00
|
|
|
* $Id: log.h,v 1.16 1997/11/09 06:22:42 brian Exp $
|
1997-10-26 01:04:02 +00:00
|
|
|
*/
|
|
|
|
|
1997-06-09 03:27:43 +00:00
|
|
|
#define LogMIN (1)
|
1997-08-25 00:29:32 +00:00
|
|
|
#define LogASYNC (1) /* syslog(LOG_INFO, ....) */
|
1997-06-09 03:27:43 +00:00
|
|
|
#define LogCARRIER (2)
|
1997-08-20 23:47:53 +00:00
|
|
|
#define LogCCP (3)
|
|
|
|
#define LogCHAT (4)
|
|
|
|
#define LogCOMMAND (5)
|
|
|
|
#define LogCONNECT (6)
|
1997-08-25 00:29:32 +00:00
|
|
|
#define LogDEBUG (7) /* syslog(LOG_DEBUG, ....) */
|
1997-08-20 23:47:53 +00:00
|
|
|
#define LogHDLC (8)
|
1997-11-09 06:22:49 +00:00
|
|
|
#define LogID0 (9)
|
|
|
|
#define LogIPCP (10)
|
|
|
|
#define LogLCP (11)
|
|
|
|
#define LogLINK (12)
|
|
|
|
#define LogLQM (13)
|
|
|
|
#define LogPHASE (14)
|
|
|
|
#define LogTCPIP (15)
|
|
|
|
#define LogTUN (16) /* If set, tun%d is output with each message */
|
|
|
|
#define LogMAXCONF (16)
|
|
|
|
#define LogWARN (17) /* Sent to VarTerm else syslog(LOG_WARNING, ) */
|
|
|
|
#define LogERROR (18) /* syslog(LOG_ERR, ....), + sent to VarTerm */
|
|
|
|
#define LogALERT (19) /* syslog(LOG_ALERT, ....) */
|
|
|
|
#define LogMAX (19)
|
1995-01-31 06:29:58 +00:00
|
|
|
|
1997-06-09 03:27:43 +00:00
|
|
|
/* The first int arg for all of the following is one of the above values */
|
|
|
|
extern const char *LogName(int);
|
|
|
|
extern void LogKeep(int);
|
1997-11-04 01:17:05 +00:00
|
|
|
extern void LogKeepLocal(int);
|
1997-06-09 03:27:43 +00:00
|
|
|
extern void LogDiscard(int);
|
1997-11-04 01:17:05 +00:00
|
|
|
extern void LogDiscardLocal(int);
|
1997-10-26 01:04:02 +00:00
|
|
|
extern void LogDiscardAll(void);
|
1997-11-04 01:17:05 +00:00
|
|
|
extern void LogDiscardAllLocal(void);
|
|
|
|
#define LOG_KEPT_SYSLOG (1) /* Results of LogIsKept() */
|
|
|
|
#define LOG_KEPT_LOCAL (2) /* Results of LogIsKept() */
|
1997-06-09 03:27:43 +00:00
|
|
|
extern int LogIsKept(int);
|
|
|
|
extern void LogOpen(const char *);
|
|
|
|
extern void LogSetTun(int);
|
1997-10-26 01:04:02 +00:00
|
|
|
extern void LogClose(void);
|
1997-11-22 03:37:54 +00:00
|
|
|
extern void LogPrintf(int, const char *,...);
|
|
|
|
extern void LogDumpBp(int, const char *, const struct mbuf *);
|
|
|
|
extern void LogDumpBuff(int, const char *, const u_char *, int);
|