dist/bower_components/log4js/log4js/src/main/js/log4js.js
function(sArg, defaultLevel) {                  
				
		if(sArg === null) {
			return defaultLevel;
		}
		
		if(typeof sArg == "string") { 
			var s = sArg.toUpperCase();
			if(s == "ALL") {return Log4js.Level.ALL;}
			if(s == "DEBUG") {return Log4js.Level.DEBUG;}
			if(s == "INFO") {return Log4js.Level.INFO;}
			if(s == "WARN") {return Log4js.Level.WARN;}
			if(s == "ERROR") {return Log4js.Level.ERROR;}
			if(s == "FATAL") {return Log4js.Level.FATAL;}
			if(s == "OFF") {return Log4js.Level.OFF;}
			if(s == "TRACE") {return Log4js.Level.TRACE;}
			return defaultLevel;
		} else if(typeof sArg == "number") {
			switch(sArg) {
				case ALL_INT: return Log4js.Level.ALL;
				case DEBUG_INT: return Log4js.Level.DEBUG;
				case INFO_INT: return Log4js.Level.INFO;
				case WARN_INT: return Log4js.Level.WARN;
				case ERROR_INT: return Log4js.Level.ERROR;
				case FATAL_INT: return Log4js.Level.FATAL;
				case OFF_INT: return Log4js.Level.OFF;
				case TRACE_INT: return Log4js.Level.TRACE;
				default: return defaultLevel;
			}
		} else {
			return defaultLevel;	
		}
	}
function(sArg, defaultLevel) {                  
				
		if(sArg === null) {
			return defaultLevel;
		}
		
		if(typeof sArg == "string") { 
			var s = sArg.toUpperCase();
			if(s == "ALL") {return Log4js.Level.ALL;}
			if(s == "DEBUG") {return Log4js.Level.DEBUG;}
			if(s == "INFO") {return Log4js.Level.INFO;}
			if(s == "WARN") {return Log4js.Level.WARN;}
			if(s == "ERROR") {return Log4js.Level.ERROR;}
			if(s == "FATAL") {return Log4js.Level.FATAL;}
			if(s == "OFF") {return Log4js.Level.OFF;}
			if(s == "TRACE") {return Log4js.Level.TRACE;}
			return defaultLevel;
		} else if(typeof sArg == "number") {
			switch(sArg) {
				case ALL_INT: return Log4js.Level.ALL;
				case DEBUG_INT: return Log4js.Level.DEBUG;
				case INFO_INT: return Log4js.Level.INFO;
				case WARN_INT: return Log4js.Level.WARN;
				case ERROR_INT: return Log4js.Level.ERROR;
				case FATAL_INT: return Log4js.Level.FATAL;
				case OFF_INT: return Log4js.Level.OFF;
				case TRACE_INT: return Log4js.Level.TRACE;
				default: return defaultLevel;
			}
		} else {
			return defaultLevel;	
		}
	}
function ( sArg , defaultLevel ) { if ( sArg === null ) { return defaultLevel ; } if ( typeof sArg == "string" ) { var s = sArg . toUpperCase ( ) ; if ( s == "ALL" ) { return Log4js . Level . ALL ; } if ( s == "DEBUG" ) { return Log4js . Level . DEBUG ; } if ( s == "INFO" ) { return Log4js . Level . INFO ; } if ( s == "WARN" ) { return Log4js . Level . WARN ; } if ( s == "ERROR" ) { return Log4js . Level . ERROR ; } if ( s == "FATAL" ) { return Log4js . Level . FATAL ; } if ( s == "OFF" ) { return Log4js . Level . OFF ; } if ( s == "TRACE" ) { return Log4js . Level . TRACE ; } return defaultLevel ; } else if ( typeof sArg == "number" ) { switch ( sArg ) { case ALL_INT : return Log4js . Level . ALL ; case DEBUG_INT : return Log4js . Level . DEBUG ; case INFO_INT : return Log4js . Level . INFO ; case WARN_INT : return Log4js . Level . WARN ; case ERROR_INT : return Log4js . Level . ERROR ; case FATAL_INT : return Log4js . Level . FATAL ; case OFF_INT : return Log4js . Level . OFF ; case TRACE_INT : return Log4js . Level . TRACE ; default : return defaultLevel ; } } else { return defaultLevel ; } }
converts given String to corresponding Level
@param {String} sArg String value of Level
@param {Log4js.Level} defaultLevel default Level, if no String representation
@return Level object
@type Log4js.Level
converts given String to corresponding Level