admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
fanli/src/main/java/com/yeshi/fanli/log/PushLogHelper.java
@@ -92,6 +92,21 @@
      } catch (IOException e1) {
      }
   }
   public static void vivoError(Throwable e) {
      String date = TimeUtil.getGernalTime(System.currentTimeMillis(), "yyyy_MM_dd");
      String os = System.getProperty("os.name");
      String filePath = String.format("/usr/local/tomcat8/logs/push/vivo_error_detail_%s.txt", date);
      if (os.toLowerCase().startsWith("win")) {
         filePath = String.format("C:/logs/push/vivo_error_detail_%s.txt", date);
      }
      try {
         saveErrorLog(e, filePath);
      } catch (IOException e1) {
      }
   }
   public static void saveErrorLog(Throwable e, String filePath) throws IOException {
      // 创建文件夹