diff --git a/closure/goog/debug/logger.js b/closure/goog/debug/logger.js
index <HASH>..<HASH> 100644
--- a/closure/goog/debug/logger.js
+++ b/closure/goog/debug/logger.js
@@ -626,11 +626,25 @@ goog.debug.Logger.prototype.logRecord = function(logRecord) {
 
 
 /**
+ * Logs the message to speed tracer, if it is available.
+ * {@see http://code.google.com/webtoolkit/speedtracer/logging-api.html}
+ * @param {string} msg The message to log.
+ * @private
+ */
+goog.debug.Logger.prototype.logToSpeedTracer_ = function(msg) {
+  if (goog.global['console'] && goog.global['console']['markTimeline']) {
+    goog.global['console']['markTimeline'](msg);
+  }
+};
+
+
+/**
  * Log a LogRecord.
  * @param {goog.debug.LogRecord} logRecord A log record to log.
  * @private
  */
 goog.debug.Logger.prototype.doLogRecord_ = function(logRecord) {
+  this.logToSpeedTracer_('log:' + logRecord.getMessage());
   if (goog.debug.Logger.ENABLE_HIERARCHY) {
     var target = this;
     while (target) {
add logging to speedtracer

R=eae
DELTA=<I>  (<I> added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=<I>


git-svn-id: <URL>