summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/log_vty.c3
-rw-r--r--lib/log_vty.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/log_vty.c b/lib/log_vty.c
index aa1888a9e9..7057a06c51 100644
--- a/lib/log_vty.c
+++ b/lib/log_vty.c
@@ -34,6 +34,7 @@
#define ZLOG_MAXLVL(a, b) MAX(a, b)
DEFINE_HOOK(zlog_rotate, (), ());
+DEFINE_HOOK(zlog_cli_show, (struct vty * vty), (vty));
static const int log_default_lvl = LOG_DEBUG;
@@ -194,6 +195,8 @@ DEFUN_NOSH (show_logging,
vty_out(vty, "Record priority: %s\n",
(zt_file.record_priority ? "enabled" : "disabled"));
vty_out(vty, "Timestamp precision: %d\n", zt_file.ts_subsec);
+
+ hook_call(zlog_cli_show, vty);
return CMD_SUCCESS;
}
diff --git a/lib/log_vty.h b/lib/log_vty.h
index f0fb7d3dba..913ff5f88e 100644
--- a/lib/log_vty.h
+++ b/lib/log_vty.h
@@ -37,6 +37,8 @@ extern void log_show_syslog(struct vty *vty);
DECLARE_HOOK(zlog_rotate, (), ());
extern void zlog_rotate(void);
+DECLARE_HOOK(zlog_cli_show, (struct vty * vty), (vty));
+
#ifdef __cplusplus
}
#endif