diff options
author | Benjamin Ford <bford@digium.com> | 2015-07-29 14:17:09 -0500 |
---|---|---|
committer | Benjamin Ford <bford@digium.com> | 2015-07-31 11:43:47 -0500 |
commit | 1ae762634c317fbcbd98a8c34d2474f7d4b654ed (patch) | |
tree | 84127e860a5d60a43d64d4a589546dfba157d323 /include/asterisk/logger.h | |
parent | f78a4b52b8ed7b5b367c3465652a7ce98fe9175d (diff) |
ARI: Rotate log channels.
An http request can be sent to rotate a specified log channel.
If the channel does not exist, an error response will be
returned.
The command "curl -v -u user:pass -X PUT 'http://localhost:8088
/ari/asterisk/logging/logChannelName/rotate'" can be run in the
terminal to access this new functionality.
* Added the ability to rotate log files through ARI
ASTERISK-25252
Change-Id: Iaefa21cbbc1b29effb33004ee3d89c977e76ab01
Diffstat (limited to 'include/asterisk/logger.h')
-rw-r--r-- | include/asterisk/logger.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h index 22151157c..be54f47ce 100644 --- a/include/asterisk/logger.h +++ b/include/asterisk/logger.h @@ -102,6 +102,13 @@ int logger_reload(void); /*! \brief Reload logger while rotating log files */ int ast_logger_rotate(void); +/*! + * \brief Rotate the specified log channel. + * + * \param log_channel The log channel to rotate + */ +int ast_logger_rotate_channel(const char *log_channel); + void __attribute__((format(printf, 5, 6))) ast_queue_log(const char *queuename, const char *callid, const char *agent, const char *event, const char *fmt, ...); /*! |