aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorbbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-29 21:30:37 +0000
committerbbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-29 21:30:37 +0000
commit15874e67c78060dee4450322803afc71a7d863c5 (patch)
treeeed99ad06ad1cc702ea32db8c1539d07aa258507 /include
parent94630e789a7766dae8dd161242159b54fccdb056 (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: http://svn.digium.com/svn/asterisk/trunk@119126 f38db490-d61c-443f-a65b-d21fe96a405b
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