src/aria/core/Log.js
function (className, level, msgArgs, msgText, objOrErr) {
            if (!this.isValidLevel(level)) {
                this.error(this.$classpath, "Invalid level passed for logging the message");
            } else {
                if (this.isLogEnabled(level, className)) {
                    var msg = this.prepareLoggedMessage(msgText, msgArgs);
                    var apps = this.getAppenders();
                    for (var i = 0; i < apps.length; i++) {
                        if (level == this.LEVEL_DEBUG) {
                            apps[i].debug(className, msg, msgText, objOrErr);
                        }
                        if (level == this.LEVEL_INFO) {
                            apps[i].info(className, msg, msgText, objOrErr);
                        }
                        if (level == this.LEVEL_WARN) {
                            apps[i].warn(className, msg, msgText, objOrErr);
                        }
                        if (level == this.LEVEL_ERROR) {
                            apps[i].error(className, msg, msgText, objOrErr);
                        }
                    }
                }
            }
        }
function (className, level, msgArgs, msgText, objOrErr) {
            if (!this.isValidLevel(level)) {
                this.error(this.$classpath, "Invalid level passed for logging the message");
            } else {
                if (this.isLogEnabled(level, className)) {
                    var msg = this.prepareLoggedMessage(msgText, msgArgs);
                    var apps = this.getAppenders();
                    for (var i = 0; i < apps.length; i++) {
                        if (level == this.LEVEL_DEBUG) {
                            apps[i].debug(className, msg, msgText, objOrErr);
                        }
                        if (level == this.LEVEL_INFO) {
                            apps[i].info(className, msg, msgText, objOrErr);
                        }
                        if (level == this.LEVEL_WARN) {
                            apps[i].warn(className, msg, msgText, objOrErr);
                        }
                        if (level == this.LEVEL_ERROR) {
                            apps[i].error(className, msg, msgText, objOrErr);
                        }
                    }
                }
            }
        }
function ( className , level , msgArgs , msgText , objOrErr ) { if ( ! this . isValidLevel ( level ) ) { this . error ( this . $classpath , "Invalid level passed for logging the message" ) ; } else { if ( this . isLogEnabled ( level , className ) ) { var msg = this . prepareLoggedMessage ( msgText , msgArgs ) ; var apps = this . getAppenders ( ) ; for ( var i = 0 ; i < apps . length ; i ++ ) { if ( level == this . LEVEL_DEBUG ) { apps [ i ] . debug ( className , msg , msgText , objOrErr ) ; } if ( level == this . LEVEL_INFO ) { apps [ i ] . info ( className , msg , msgText , objOrErr ) ; } if ( level == this . LEVEL_WARN ) { apps [ i ] . warn ( className , msg , msgText , objOrErr ) ; } if ( level == this . LEVEL_ERROR ) { apps [ i ] . error ( className , msg , msgText , objOrErr ) ; } } } } }
Actually do the logging to the current appenders
@param {String} className The className that is logging
@param {String} level The level to log the message
@param {Array} msgArgs An array of arguments to be used for string replacement in the message text
@param {String} msg The message text
@param {Object} objOrErr Either an option object to be logged or an error message in case of error or fatal
levels
Actually do the logging to the current appenders