aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/logger.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-10-27 00:56:38 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-10-27 00:56:38 +0000
commita561260fdab6fed8b474e89f797c0e64eefc4684 (patch)
tree60333681c40ddcaf6a39c782d713d94143aaa6b7 /include/asterisk/logger.h
parent43ddba956a94b7316dd0b3fdb031b2e1b794941a (diff)
Version 0.1.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/logger.h')
-rwxr-xr-xinclude/asterisk/logger.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h
new file mode 100755
index 000000000..f7ffc5014
--- /dev/null
+++ b/include/asterisk/logger.h
@@ -0,0 +1,48 @@
+/*
+ * Cheops Next Generation
+ *
+ * Mark Spencer <markster@marko.net>
+ *
+ * Copyright(C) 1999, Adtran, Inc.
+ *
+ * Distributed under the terms of the GNU General Public License (GPL) Version
+ *
+ * Logging routines
+ *
+ */
+
+#ifndef _LOGGER_H
+#define _LOGGER_H
+
+#include <stdarg.h>
+
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
+#define EVENTLOG "event_log"
+
+#define DEBUG_M(a) { \
+ a; \
+}
+
+extern void ast_log(int level, char *file, int line, char *function, char *fmt, ...);
+extern void ast_verbose(char *fmt, ...);
+
+extern int ast_register_verbose(void (*verboser)(char *string, int opos, int replacelast, int complete));
+extern int ast_unregister_verbose(void (*verboser)(char *string, int opos, int replacelast, int complete));
+
+#define _A_ __FILE__, __LINE__, __PRETTY_FUNCTION__
+
+#define LOG_DEBUG 0, _A_
+#define LOG_EVENT 1, _A_
+#define LOG_NOTICE 2, _A_
+#define LOG_WARNING 3, _A_
+#define LOG_ERROR 4, _A_
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
+
+#endif