2 * Cheops Next Generation
4 * Mark Spencer <markster@marko.net>
6 * Copyright(C) 1999, Adtran, Inc.
8 * Distributed under the terms of the GNU General Public License (GPL) Version
19 #if defined(__cplusplus) || defined(c_plusplus)
23 #define EVENTLOG "event_log"
25 #define DEBUG_M(a) { \
29 extern void ast_log(int level, char *file, int line, char *function, char *fmt, ...);
30 extern void ast_verbose(char *fmt, ...);
32 extern int ast_register_verbose(void (*verboser)(char *string, int opos, int replacelast, int complete));
33 extern int ast_unregister_verbose(void (*verboser)(char *string, int opos, int replacelast, int complete));
35 #define _A_ __FILE__, __LINE__, __PRETTY_FUNCTION__
37 #define LOG_DEBUG 0, _A_
38 #define LOG_EVENT 1, _A_
39 #define LOG_NOTICE 2, _A_
40 #define LOG_WARNING 3, _A_
41 #define LOG_ERROR 4, _A_
43 #if defined(__cplusplus) || defined(c_plusplus)