out.setDisableClose(true);
EnvironmentStream.setStdout(out);
EnvironmentStream.setStderr(out);
LogConfig log = new LogConfig();
log.setName("");
log.setPath(logPath);
log.setLevel("all");
log.init();
if (System.getProperty("log.level") != null)
Logger.getLogger("").setLevel(Level.FINER);
else
Logger.getLogger("").setLevel(Level.INFO);