mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user