]> git.puffer.fish Git - mirror/frr.git/commitdiff
[logging] Add new "log timestamp precision" command for subsecond timestamps
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Sun, 29 Apr 2007 03:53:31 +0000 (03:53 +0000)
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Sun, 29 Apr 2007 03:53:31 +0000 (03:53 +0000)
2007-04-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* vtysh.c: (vtysh_log_timestamp_precision,
  no_vtysh_log_timestamp_precision) Implement new log timestamp
  precision commands: send to all daemons.
  (vtysh_init_vty) Install new log timestamp precision commands.

vtysh/ChangeLog
vtysh/vtysh.c

index b9b78f5ed158ab75ac1edf2bb38b04052f941a93..4ca5df9451520031f87c53a7c6b4fee38808130f 100644 (file)
@@ -1,3 +1,10 @@
+2007-04-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+       * vtysh.c: (vtysh_log_timestamp_precision,
+         no_vtysh_log_timestamp_precision) Implement new log timestamp
+         precision commands: send to all daemons.
+         (vtysh_init_vty) Install new log timestamp precision commands.
+
 2006-07-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
        * vtysh_main.c: (usage) Add new -d and -E options.  And note that
index 9b7d300fee93dcb90e75287f185c020bc4a6d197..2b907ca2c7e784f3b32d73d2100a7115b4c2370e 100644 (file)
@@ -1571,6 +1571,30 @@ DEFUNSH (VTYSH_ALL,
   return CMD_SUCCESS;
 }
 
+DEFUNSH (VTYSH_ALL,
+        vtysh_log_timestamp_precision,
+        vtysh_log_timestamp_precision_cmd,
+        "log timestamp precision <0-6>",
+        "Logging control\n"
+        "Timestamp configuration\n"
+        "Set the timestamp precision\n"
+        "Number of subsecond digits\n")
+{
+  return CMD_SUCCESS;
+}
+
+DEFUNSH (VTYSH_ALL,
+        no_vtysh_log_timestamp_precision,
+        no_vtysh_log_timestamp_precision_cmd,
+        "no log timestamp precision",
+        NO_STR
+        "Logging control\n"
+        "Timestamp configuration\n"
+        "Reset the timestamp precision to the default value of 0\n")
+{
+  return CMD_SUCCESS;
+}
+
 DEFUNSH (VTYSH_ALL,
         vtysh_service_password_encrypt,
         vtysh_service_password_encrypt_cmd,
@@ -2408,6 +2432,8 @@ vtysh_init_vty (void)
   install_element (CONFIG_NODE, &no_vtysh_log_facility_cmd);
   install_element (CONFIG_NODE, &vtysh_log_record_priority_cmd);
   install_element (CONFIG_NODE, &no_vtysh_log_record_priority_cmd);
+  install_element (CONFIG_NODE, &vtysh_log_timestamp_precision_cmd);
+  install_element (CONFIG_NODE, &no_vtysh_log_timestamp_precision_cmd);
 
   install_element (CONFIG_NODE, &vtysh_service_password_encrypt_cmd);
   install_element (CONFIG_NODE, &no_vtysh_service_password_encrypt_cmd);