luobang 2 years ago
parent
commit
3913527dd5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/steerinfo/dil/util/newFileTool.java

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

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