public void run() {
		while (active) {
			int mod = timeElapsed % 5;
			switch(mod)
			{
			case 0:
				log.info("info level log.");
				break;
			case 1:
				log.debug("debug level log.");
				break;
			case 2:
				log.warn("warn level log");
				break;
			case 3:
				log.error("error level log");
				break;
			case 4:
				log.fatal("fatal level log");
				break;
			}
			try {
				Random r = new Random();
				int i = r.nextInt(6) + 5;
				timeElapsed += i; 
				Thread.sleep(i*1000);
			} catch (Exception e) {
				log.error("Thread interrupted " + e.getMessage(), e);
			}
		}
	}