diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-09 02:44:27 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-09 02:44:27 +0000 |
commit | ad6c07010d8a94037af8989b23769e649031a5d1 (patch) | |
tree | 32bdb0325215391d2e4b4f026dbe68f724c3280c /include/asterisk/logger.h | |
parent | 91ed7a2ff8a1e10abd2c37ab6c8cf119923b002a (diff) |
add a dedicated log channel for modules to be able report security-related events, so that they can be fed into external processes for analysis and possible mitigation efforts
(inspired by this evening's Toronto Asterisk Users Group meeting and previous dicussions amongst various community members)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@187269 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/logger.h')
-rw-r--r-- | include/asterisk/logger.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h index 65448cfe4..1941accbc 100644 --- a/include/asterisk/logger.h +++ b/include/asterisk/logger.h @@ -189,7 +189,18 @@ void ast_console_toggle_loglevel(int fd, int level, int state); #endif #define AST_LOG_DTMF __LOG_DTMF, _A_ -#define NUMLOGLEVELS 6 +#ifdef LOG_SECURITY +#undef LOG_SECURITY +#endif +#define __LOG_SECURITY 7 +#define LOG_SECURITY __LOG_SECURITY, _A_ + +#ifdef AST_LOG_SECURITY +#undef AST_LOG_SECURITY +#endif +#define AST_LOG_SECURITY __LOG_SECURITY, _A_ + +#define NUMLOGLEVELS 7 /*! * \brief Get the debug level for a file |