aos: add dynamic logging on an opt-in basis
Applications including this can have vlog changed with:
aos_send /aos aos.logging.DynamicLogCommand '{"name": "app", "vlog_level": 1}'
Change-Id: Id387cdb501ad84ed3e266a2077ea93478b480afa
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/logging/dynamic_log_command.fbs b/aos/logging/dynamic_log_command.fbs
new file mode 100644
index 0000000..a2db85e
--- /dev/null
+++ b/aos/logging/dynamic_log_command.fbs
@@ -0,0 +1,11 @@
+namespace aos.logging;
+
+table DynamicLogCommand {
+ // Application name
+ name:string (id: 0);
+
+ // vlog level to set
+ vlog_level:int (id: 1);
+}
+
+root_type DynamicLogCommand;