docs: function (className, msg, msgText, e) {
                  var message = this._formatClassName(className) + msg;
                  var extraInfo = "";
                  if (e) {
                      if (e.logDetails) {
                          e.logDetails();
                      }
                      var extraInfo = (e.name && e.message) ? (e.name + ": " + e.message) : e.toString();
                      var stack = e.stack;
                      if (stack) {
                          // sometimes the stack starts with the name and message, sometimes not
                          if (extraInfo === stack.substring(0, extraInfo.length)) {
                              extraInfo = stack;
                          } else {
                              extraInfo += "\n" + stack;
                          }
                      }
                      extraInfo = "\n" + extraInfo;
                  }
                  console.error(message + extraInfo);
              }