public void run() {
		while (active) {
			int mod = timeElapsed % 7;
			switch(mod)
			{
			case 0:
				log.info("info level log.");
				break;
			case 1:
				log.config("config level log.");
				break;
			case 2:
				log.warning("warning level log");
				break;
			case 3:
				log.fine("fine level log");
				break;
			case 4:
				log.finer("finer level log");
				break;
			case 5:
				log.finest("finest level log");
				break;
			case 6:
				log.severe("severe level log");
				break;
			}
			try {
				Random r = new Random();
				int i = r.nextInt(8) + 7;
				timeElapsed += i; 
				Thread.sleep(i*1000);
			} catch (Exception e) {
				log.severe("Thread interrupted " + e.getMessage());
			}
		}
	}