code: function (msg) {
              var config = this._config;
              this.$logError.apply(this, msg);
              if (config.onerror) {
                  this.$callback(config.onerror, msg);
              }
          }
docs: Logs an error and calls the onerror callback if specified in the configuration
  @param {Array} msg Parameters to pass to the $logError method or to the error method provided in the
  configuration
  @protected