1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
/*
* 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 void log_open(char *progname, int foreground);
extern void log_close(void);
extern void enable_logging(char *kind);
extern int logging_enabled(int level);
extern void toggle_logging(int sig);
extern void background_logging(void);
extern void Dprintf(int level, const char *fmt, ...);
extern void log_call(struct svc_req *rqstp, char *name, char *arg);
#endif /* LOGGING_H */
/* End of logging.h. */
|