From 0cee1d3dac5961a08594c3734eea14fc490f3250 Mon Sep 17 00:00:00 2001
From: "A. Unique TensorFlower" <nobody@tensorflow.org>
Date: Wed, 27 Jan 2016 13:29:25 -0800
Subject: [PATCH] Add a new 'log message' event type.

This will be used in a subsequent change to allow Python code to log to the
events file so that it can be viewed in TensorBoard and so logging events can be
associated with models more easily.
Change: 113194631
---
 tensorflow/core/util/event.proto | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/tensorflow/core/util/event.proto b/tensorflow/core/util/event.proto
index b2d0982ed83..162595a89e5 100644
--- a/tensorflow/core/util/event.proto
+++ b/tensorflow/core/util/event.proto
@@ -25,5 +25,22 @@ message Event {
     GraphDef graph_def = 4;
     // A summary was generated.
     Summary summary = 5;
+    // The user output a log message. Not all messages are logged, only ones
+    // generated via the Python tensorboard_logging module.
+    LogMessage log_message = 6;
   }
 }
+
+// Protocol buffer used for logging messages to the events file.
+message LogMessage {
+  enum Level {
+    UNKNOWN = 0;
+    DEBUG = 10;
+    INFO = 20;
+    WARN = 30;
+    ERROR = 40;
+    FATAL = 50;
+  }
+  Level level = 1;
+  string message = 2;
+}