diff options
author | Joshua Colp <jcolp@digium.com> | 2015-08-07 10:41:22 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-08-07 10:41:22 -0500 |
commit | cf272003919f04c1aaf3d0e921a0385be1e45e4b (patch) | |
tree | aa34515cc0a9d6c18778bebde3c0bd2082e5f3f3 /include/asterisk | |
parent | 4b1bd40d7ed639d884a62c2b70129d0fee32fa08 (diff) | |
parent | 78364132ce94d9ded24ae6e6ab44b97d256b506d (diff) |
Merge "ARI: Deleting log channels" into 13
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/logger.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h index be54f47ce..e9441472f 100644 --- a/include/asterisk/logger.h +++ b/include/asterisk/logger.h @@ -45,6 +45,13 @@ extern "C" { #define AST_CALLID_BUFFER_LENGTH 13 +enum ast_logger_results { + AST_LOGGER_SUCCESS = 0, /*!< Log channel was created or deleted successfully*/ + AST_LOGGER_FAILURE = 1, /*!< Log channel already exists for create or doesn't exist for deletion of log channel */ + AST_LOGGER_DECLINE = -1, /*!< Log channel request was not accepted */ + AST_LOGGER_ALLOC_ERROR = -2 /*!< filename allocation error */ +}; + /*! \brief Used for sending a log message This is the standard logger function. Probably the only way you will invoke it would be something like this: ast_log(AST_LOG_WHATEVER, "Problem with the %s Captain. We should get some more. Will %d be enough?\n", "flux capacitor", 10); @@ -92,6 +99,13 @@ void ast_log_callid(int level, const char *file, int line, const char *function, __attribute__((format(printf, 6, 7))); /*! + * \brief Delete the specified log channel + * + * \param log_channel The log channel to delete + */ +int ast_logger_remove_channel(const char *log_channel); + +/*! * \brief Log a backtrace of the current thread's execution stack to the Asterisk log */ void ast_log_backtrace(void); |