src/aria/core/Log.js
function (className) {
            var loggingLevel = this._loggingLevels[className];
            if (!!loggingLevel) {
                // If there is a logging level stored for the exact classname passed in parameter
                return loggingLevel;
            } else {
                // Else, look for package names
                var str = className;

                while (str.indexOf(".") != -1) {
                    str = str.substring(0, str.lastIndexOf("."));
                    if (this._loggingLevels[str]) {
                        return this._loggingLevels[str];
                    } else if (this._loggingLevels[str + ".*"]) {
                        return this._loggingLevels[str + ".*"];
                    }
                }

                return this._loggingLevels["*"] || false;
            }
        }
function (className) {
            var loggingLevel = this._loggingLevels[className];
            if (!!loggingLevel) {
                // If there is a logging level stored for the exact classname passed in parameter
                return loggingLevel;
            } else {
                // Else, look for package names
                var str = className;

                while (str.indexOf(".") != -1) {
                    str = str.substring(0, str.lastIndexOf("."));
                    if (this._loggingLevels[str]) {
                        return this._loggingLevels[str];
                    } else if (this._loggingLevels[str + ".*"]) {
                        return this._loggingLevels[str + ".*"];
                    }
                }

                return this._loggingLevels["*"] || false;
            }
        }
function ( className ) { var loggingLevel = this . _loggingLevels [ className ] ; if ( ! ! loggingLevel ) { // If there is a logging level stored for the exact classname passed in parameter return loggingLevel ; } else { // Else, look for package names var str = className ; while ( str . indexOf ( "." ) != - 1 ) { str = str . substring ( 0 , str . lastIndexOf ( "." ) ) ; if ( this . _loggingLevels [ str ] ) { return this . _loggingLevels [ str ] ; } else if ( this . _loggingLevels [ str + ".*" ] ) { return this . _loggingLevels [ str + ".*" ] ; } } return this . _loggingLevels [ "*" ] || false ; } }
Get the currently allowed logging level for a particular className
@param {String} className
@return {Number} level or false if no logging level is defined
Get the currently allowed logging level for a particular className