code: function logMessage(message)
      {
          var repeatCount = 1;
          if (message == WebInspector.log.lastMessage)
              repeatCount = WebInspector.log.repeatCount + 1;
  
          WebInspector.log.lastMessage = message;
          WebInspector.log.repeatCount = repeatCount;
  
          // ConsoleMessage expects a proxy object
          message = new WebInspector.RemoteObject.fromPrimitiveValue(message);
  
          // post the message
          var msg = new WebInspector.ConsoleMessage(
              WebInspector.ConsoleMessage.MessageSource.Other,
              WebInspector.ConsoleMessage.MessageType.Log,
              messageLevel || WebInspector.ConsoleMessage.MessageLevel.Debug,
              -1,
              null,
              repeatCount,
              null,
              [message],
              null);
  
          self.console.addMessage(msg);
      }
docs: actually log the message