public static void setLevel(int lvl)
    {
    	if( logger == null )
    		return;
    	
    	level = lvl;
    	
    	switch( level ) 
    	{
    		case DebugLevel.OFF:
    			logger.setLevel(Level.OFF); 
    			break;
    		case DebugLevel.ALL:
    			logger.setLevel(Level.ALL); 
    			break;
    		case DebugLevel.DEBUG:
    			logger.setLevel(Level.CONFIG); 
    			break;
    		case DebugLevel.INFO:
    			logger.setLevel(Level.INFO); 
    			break;
    		case DebugLevel.WARNING:
    			logger.setLevel(Level.WARNING); 
    			break;
    		case DebugLevel.ERROR:
    			logger.setLevel(Level.SEVERE); 
    			break;
    		case DebugLevel.FATAL_ERROR:
    			logger.setLevel(Level.SEVERE); 
    			break;
    		default:
    			logger.setLevel(Level.SEVERE); 
    			break;
    	}
    }