/*
 * logging.h	Definitions for the logging functions.
 *
 * Authors:	Donald J. Becker, <becker@super.org>
 *		Rick Sladkey, <jrs@world.std.com>
 *		Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
 *
 *		This software maybe be used for any purpose provided
 *		the above copyright notice is retained.  It is supplied
 *		as is, with no warranty expressed or implied.
 */

#ifndef LOGGING_H
#define LOGGING_H

/* Logging/Debug levels */
#define L_ERROR		0x0001
#define L_WARNING	0x0002
#define L_NOTICE	0x0004
#define L_FATAL		0x0008
#define D_GENERAL	0x0100
#define D_CALL		0x0200
#define D_FHCACHE	0x0400
#define D_AUTH		0x0800
#define D_UGID		0x1000
#define D_RMTAB		0x2000
#define D_FHTRACE	0x4000
#define D_ALL		0xFFFF

/* Global Function prototypes. */
extern _PRO( void log_open, (char *progname, int foreground)		);
extern _PRO( void enable_logging, (char *kind)				);
extern _PRO( int  logging_enabled, (int level)				);
extern _PRO( void toggle_logging, (int sig)				);
extern _PRO( void background_logging, (void)				);
extern _PRO( void Dprintf, (int level, const char *fmt, ...)		);
extern _PRO( void log_call, (struct svc_req *rqstp, char *name,		\
			    char *arg)					);

#endif /* LOGGING_H */

/* End of logging.h. */
