summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrett Bryant <bbryant@digium.com>2008-05-29 21:30:37 +0000
committerBrett Bryant <bbryant@digium.com>2008-05-29 21:30:37 +0000
commit5b8e1963c56406b71357aa5428672c02363bc0da (patch)
treeeed99ad06ad1cc702ea32db8c1539d07aa258507 /include
parentf0b2c4ee0830768f59f1274c93464f7a8d2e2dd5 (diff)
Adds support for changing logger settingss on remote consoles with a
new command "logger set level". i.e. "logger set level debug off" (closes issue #10891) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@119126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/logger.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h
index 2695efb99..cb7818091 100644
--- a/include/asterisk/logger.h
+++ b/include/asterisk/logger.h
@@ -88,8 +88,9 @@ int ast_unregister_verbose(void (*verboser)(const char *string)) __attribute__((
void ast_console_puts(const char *string);
-void ast_console_puts_mutable(const char *string);
+void ast_console_puts_mutable(const char *string, int level);
void ast_console_toggle_mute(int fd, int silent);
+void ast_console_toggle_loglevel(int fd, int leve, int state);
/* Note: The AST_LOG_* macros below are the same as
* the LOG_* macros and are intended to eventually replace
@@ -178,6 +179,8 @@ void ast_console_toggle_mute(int fd, int silent);
#endif
#define AST_LOG_DTMF __LOG_DTMF, _A_
+#define NUMLOGLEVELS 6
+
/*!
* \brief Get the debug level for a file
* \arg file the filename