summaryrefslogtreecommitdiff
path: root/main/logger.c
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2014-06-20 20:29:45 +0000
committerJonathan Rose <jrose@digium.com>2014-06-20 20:29:45 +0000
commite087ae0c022a307e358fe9339b0a58323aa3d28a (patch)
tree9380c22424be35e11e6aa91758d57d9da621905b /main/logger.c
parent86e8ab5ed47bccf0ee80acfd711eb81b0991522c (diff)
Logger: Add manager command 'LoggerRotate' to rotate logger
Part of a series of AMI command equivalents to existing CLI commands Review: https://reviewboard.asterisk.org/r/3651/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@416848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/logger.c')
-rw-r--r--main/logger.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/logger.c b/main/logger.c
index c58b97c97..86cd0d4a6 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -928,6 +928,11 @@ static char *handle_logger_rotate(struct ast_cli_entry *e, int cmd, struct ast_c
return CLI_SUCCESS;
}
+int ast_logger_rotate()
+{
+ return reload_logger(1, NULL);
+}
+
static char *handle_logger_set_level(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
int x;