lib/diagnostics.js
function setLevel(level) {
        if (typeof(level) === "number") {
            if (level >= 0 && level <= 5) {
                _level = level;
            } else {
                invalidParameter(level);
            }
        } else if (typeof(level) === 'string') {
            if (Level.hasOwnProperty(level)) {
                _level = Level[level];
            } else {
                invalidParameter(level);
            }
        } else {
            invalidParameter(level);
        }
        return createObject();
    }
function setLevel(level) {
        if (typeof(level) === "number") {
            if (level >= 0 && level <= 5) {
                _level = level;
            } else {
                invalidParameter(level);
            }
        } else if (typeof(level) === 'string') {
            if (Level.hasOwnProperty(level)) {
                _level = Level[level];
            } else {
                invalidParameter(level);
            }
        } else {
            invalidParameter(level);
        }
        return createObject();
    }
function setLevel ( level ) { if ( typeof ( level ) === "number" ) { if ( level >= 0 && level <= 5 ) { _level = level ; } else { invalidParameter ( level ) ; } } else if ( typeof ( level ) === 'string' ) { if ( Level . hasOwnProperty ( level ) ) { _level = Level [ level ] ; } else { invalidParameter ( level ) ; } } else { invalidParameter ( level ) ; } return createObject ( ) ; }
set the logging level

@param: level The verbosity of the logger.
set the logging level