added logging to file and syslog (need to add support for specifying facility)
[radsecproxy.git] / debug.h
1 /*
2  * Copyright (C) 2007 Stig Venaas <venaas@uninett.no>
3  *
4  * Permission to use, copy, modify, and distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  */
8
9 #define DBG_INFO 16
10 #define DBG_WARN 32
11 #define DBG_ERR 64
12
13 void debug_init(char *ident);
14 void debug_set_level(uint8_t level);
15 uint8_t debug_get_level();
16 void debug(uint8_t level, char *format, ...);
17 void debugx(int status, uint8_t level, char *format, ...);
18 int debug_set_destination(char *dest);