String filePath = "";
String osName = System.getProperties().getProperty("os.name").trim().toUpperCase();
if (osName.equals("LINUX")) {
System.out.println("running in Linux");
filePath = File.separator + "tmp" + File.separator + "hly" + File.separator + System.currentTimeMillis() + "" + ".txt";
} else {
System.out.println("don't running in Linux");
filePath = "C:" + File.separator + "hly" + File.separator + System.currentTimeMillis() + "" + ".txt";
}
System.out.println("logFile :" + filePath);