log.h revision 6059
16059Samurai/*
26059Samurai *	    Written by Toshiharu OHNO (tony-o@iij.ad.jp)
36059Samurai *
46059Samurai *   Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
56059Samurai *
66059Samurai * Redistribution and use in source and binary forms are permitted
76059Samurai * provided that the above copyright notice and this paragraph are
86059Samurai * duplicated in all such forms and that any documentation,
96059Samurai * advertising materials, and other materials related to such
106059Samurai * distribution and use acknowledge that the software was developed
116059Samurai * by the Internet Initiative Japan.  The name of the
126059Samurai * IIJ may not be used to endorse or promote products derived
136059Samurai * from this software without specific prior written permission.
146059Samurai * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
156059Samurai * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
166059Samurai * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
176059Samurai *
186059Samurai * $Id:$
196059Samurai *
206059Samurai *	TODO:
216059Samurai */
226059Samurai
236059Samurai#ifndef _LOG_H_
246059Samurai#define	_LOG_H_
256059Samurai/*
266059Samurai *  Definition of log level
276059Samurai */
286059Samurai#define	LOG_PHASE	0
296059Samurai#		define	LM_PHASE	"Phase"
306059Samurai#define	LOG_CHAT	1
316059Samurai#		define	LM_CHAT		"Chat"
326059Samurai#define	LOG_LQM		2
336059Samurai#		define	LM_LQM		"LQM"
346059Samurai#define	LOG_LCP		3
356059Samurai#		define	LM_LCP		"LCP"
366059Samurai#define	LOG_TCPIP	4
376059Samurai#		define	LM_TCPIP	"TCP/IP"
386059Samurai#define	LOG_HDLC	5
396059Samurai#		define	LM_HDLC		"HDLC"
406059Samurai#define	LOG_ASYNC	6
416059Samurai#		define	LM_ASYNC	"Async"
426059Samurai#define	MAXLOGLEVEL	7
436059Samurai
446059Samuraiextern int loglevel;
456059Samurai
466059Samuraiextern void LogTimeStamp();
476059Samuraiextern int LogOpen();
486059Samuraiextern void DupLog();
496059Samuraiextern void LogClose();
506059Samuraiextern void logprintf(), LogPrintf();
516059Samuraiextern void LogDumpBp(int level, char *header, struct mbuf *bp);
526059Samuraiextern void LogDumpBuff(int level, char *header, u_char *ptr, int cnt);
536059Samurai#endif
54