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
This commit is contained in:
Brett Bryant
2008-05-29 21:30:37 +00:00
parent f0b2c4ee08
commit 5b8e1963c5
3 changed files with 65 additions and 9 deletions

View File

@@ -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