From 2822296ddb22389c5b4e9b8fb6ef7c906ff99314 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 18 Feb 2011 20:37:04 +0100 Subject: LOGGING: configure logging from the vty We can now configure logging to (multiple) files, stderr and syslog from the vty command line in a persistent way (config file) --- src/vty/vty.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/vty/vty.c') diff --git a/src/vty/vty.c b/src/vty/vty.c index a5b16dce..c1a9b3af 100644 --- a/src/vty/vty.c +++ b/src/vty/vty.c @@ -765,6 +765,9 @@ static void vty_end_config(struct vty *vty) vty_config_unlock(vty); vty->node = ENABLE_NODE; break; + case CFG_LOG_NODE: + vty->node = CONFIG_NODE; + break; default: /* Unknown node, we have to ignore it. */ break; @@ -1129,6 +1132,9 @@ static void vty_stop_input(struct vty *vty) vty_config_unlock(vty); vty->node = ENABLE_NODE; break; + case CFG_LOG_NODE: + vty->node = CONFIG_NODE; + break; default: /* Unknown node, we have to ignore it. */ break; -- cgit v1.2.3