summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2001-11-01 14:03:04 +0000
committerMark Spencer <markster@digium.com>2001-11-01 14:03:04 +0000
commite2a5bf34459824b1f7eaec04652aae45aa4c223b (patch)
tree1eb38546c47abd9d3328463a1e645ca94b8e3a11 /include/asterisk
parent2ff8edf07b8229e592667d89ef9bd45deea4a1c5 (diff)
Version 0.1.10 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rwxr-xr-xinclude/asterisk/logger.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h
index d8da8d727..c819d7ac5 100755
--- a/include/asterisk/logger.h
+++ b/include/asterisk/logger.h
@@ -26,7 +26,27 @@ extern "C" {
a; \
}
+//! Used for sending a log message
+/*!
+ * \param level don't need to worry about it
+ * \param file ditto
+ * \param line ditto
+ * \param function ditto
+ * \param fmt this is what is important. The format is the same as your favorite breed of printf. You know how that works, right? :-)
+ * This is the standard logger function. Probably the only way you will invoke it would be something like this:
+ * ast_log(LOG_WHATEVER, "Problem with the %s Captain. We should get some more. Will %d be enough?", "flux capacitor", 10);
+ * where WHATEVER is one of ERROR, DEBUG, EVENT, NOTICE, or WARNING depending on which log you wish to output to.
+ */
extern void ast_log(int level, char *file, int line, char *function, char *fmt, ...);
+
+//! Send a verbose message (based on verbose level)
+/*!
+ * This works like ast_log, but prints verbose messages to the console depending on verbosity level set.
+ * ast_verbose(VERBOSE_PREFIX_3 "Whatever %s is happening\n", "nothing");
+ * This will print the message to the console if the verbose level is set to a level >= 3
+ * Note the abscence of a comma after the VERBOSE_PREFIX_3. This is important.
+ * VERBOSE_PREFIX_1 through VERBOSE_PREFIX_3 are defined.
+ */
extern void ast_verbose(char *fmt, ...);
extern int ast_register_verbose(void (*verboser)(char *string, int opos, int replacelast, int complete));