summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorScott Emidy <jemidy@digium.com>2015-08-07 11:14:06 -0500
committerScott Emidy <jemidy@digium.com>2015-08-07 11:15:08 -0500
commite9f1bc08cbda7759707c30b8883b266555d0fefc (patch)
tree0a2ff61c1f4b4d8d6ae0c426be73ef66dffc35ae /include/asterisk
parentcf272003919f04c1aaf3d0e921a0385be1e45e4b (diff)
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
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/logger.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h
index e9441472f..18701a198 100644
--- a/include/asterisk/logger.h
+++ b/include/asterisk/logger.h
@@ -99,6 +99,14 @@ void ast_log_callid(int level, const char *file, int line, const char *function,
__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
*
* \param log_channel The log channel to delete