src/aria/core/JsObject.js
function (msg, msgArgs, err) {
                // replaced by the true logging function when
                // aria.core.Log is loaded
                // If it's not replaced because the log is never
                // downloaded, at least there will be errors in the
                // console.
                if (Aria.$global.console) {
                    if (typeof msgArgs === "string")
                        msgArgs = [msgArgs];
                    Aria.$global.console.error(msg.replace(/%[0-9]+/g, function (token) {
                        return msgArgs[parseInt(token.substring(1), 10) - 1];
                    }), err);
                }
                return "";
            }
function (msg, msgArgs, err) {
                // replaced by the true logging function when
                // aria.core.Log is loaded
                // If it's not replaced because the log is never
                // downloaded, at least there will be errors in the
                // console.
                if (Aria.$global.console) {
                    if (typeof msgArgs === "string")
                        msgArgs = [msgArgs];
                    Aria.$global.console.error(msg.replace(/%[0-9]+/g, function (token) {
                        return msgArgs[parseInt(token.substring(1), 10) - 1];
                    }), err);
                }
                return "";
            }
function ( msg , msgArgs , err ) { // replaced by the true logging function when // aria.core.Log is loaded // If it's not replaced because the log is never // downloaded, at least there will be errors in the // console. if ( Aria . $global . console ) { if ( typeof msgArgs === "string" ) msgArgs = [ msgArgs ] ; Aria . $global . console . error ( msg . replace ( / %[0-9]+ / g , function ( token ) { return msgArgs [ parseInt ( token . substring ( 1 ) , 10 ) - 1 ] ; } ) , err ) ; } return "" ; }
Log an error message to the logger
@param {String} msg the message text
@param {Array} msgArgs An array of arguments to be used for string replacement in the message text
@param {Object} err The actual JS error object that was created or an object to be inspected in the
logged message
Log an error message to the logger