Add logger version and sha1 to the logfile header

This makes it a lot easier to track down where a failure came from.

Change-Id: Ieeb568049b64cb69d990e4c55bb7051225a602f8
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/events/logging/log_writer.h b/aos/events/logging/log_writer.h
index 7beef03..23ab349 100644
--- a/aos/events/logging/log_writer.h
+++ b/aos/events/logging/log_writer.h
@@ -43,6 +43,11 @@
   // Overrides the name in the log file header.
   void set_name(std::string_view name) { name_ = name; }
 
+  void set_logger_sha1(std::string_view sha1) { logger_sha1_ = sha1; }
+  void set_logger_version(std::string_view version) {
+    logger_version_ = version;
+  }
+
   // Sets the callback to run after each period of data is logged. Defaults to
   // doing nothing.
   //
@@ -289,6 +294,8 @@
 
   // Name to save in the log file.  Defaults to hostname.
   std::string name_;
+  std::string logger_sha1_;
+  std::string logger_version_;
 
   std::function<void()> on_logged_period_ = []() {};