luobang 2 년 전
부모
커밋
3922b0ba25
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/steerinfo/dil/util/newFileTool.java

+ 2 - 2
src/main/java/com/steerinfo/dil/util/newFileTool.java

@@ -15,8 +15,8 @@ public class newFileTool {
         //SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
         FastDateFormat format = FastDateFormat.getInstance("yyyy-MM-dd");
         String date  = format.format(new Date());
-        //File file = new File("/icore/log/" + date + "-" + type + ".txt");
-        File file = new File("/shared/test.txt");
+        File file = new File("/shared/" + date + "-" + type + ".txt");
+        //File file = new File("/shared/test.txt");
         FileWriter fileWriter = new FileWriter(file,true);
         FastDateFormat format1 = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss");
         fileWriter.append("\n");