ARI: Creating log channels

An http request can be sent to create a log channel
in Asterisk.

The command "curl -v -u user:pass -X POST
'http://localhost:088/ari/asterisk/logging/mylog?
configuration=notice,warning'" can be run in the terminal
to access the newly implemented functionality for ARI.

* Ability to create log channels using ARI

ASTERISK-25252

Change-Id: I9a20e5c75716dfbb6b62fd3474faf55be20bd782
This commit is contained in:
Scott Emidy
2015-08-07 11:14:06 -05:00
parent ecd4cde521
commit b91ca7ba49
8 changed files with 249 additions and 17 deletions

View File

@@ -98,6 +98,14 @@ typedef unsigned int ast_callid;
void ast_log_callid(int level, const char *file, int line, const char *function, ast_callid callid, const char *fmt, ...)
__attribute__((format(printf, 6, 7)));
/*!
* \brief Create a log channel
*
* \param log_channel Log channel to create
* \param components Logging config levels to add to the log channel
*/
int ast_logger_create_channel(const char *log_channel, const char *components);
/*!
* \brief Delete the specified log channel
*