code: public static void setLogDir(String dir) {
  		try { 
  			logDir = dir;
  			for (Entry<Class<?>, Logger> en : loggers.entrySet()) {
  				FileHandler fh = new FileHandler(logDir+File.separator+en.getKey().getSimpleName()+".log");
  				fh.setFormatter(getFormatter(en.getValue(),true));
  				en.getValue().addHandler(fh);
  			}
  		}
  		catch (SecurityException e) { e.printStackTrace(); }
  		catch (IOException e) { e.printStackTrace(); }  
  	}
docs: Instruct loggers to log all output to a directory. Each class will be logged to a file named
  <code>className.log</code>.
  @param dir The directory to log to.