| | |
| | | e.printStackTrace();
|
| | | String date = TimeUtil.getGernalTime(System.currentTimeMillis(), "yyyy_MM_dd");
|
| | | String os = System.getProperty("os.name");
|
| | | String filePath = String.format("/usr/local/tomcat8/logs/error_detail_%s.txt", date);
|
| | | String filePath = String.format("/usr/local/tomcat8/logs/error_detail_%s.log", date);
|
| | | if (os.toLowerCase().startsWith("win")) {
|
| | | filePath = String.format("C:/logs/error_detail_%s.txt", date);
|
| | | filePath = String.format("C:/logs/error_detail_%s.log", date);
|
| | | } else
|
| | | filePath = String.format("/usr/local/tomcat8/logs/error_detail_%s.txt", date);
|
| | | filePath = String.format("/usr/local/tomcat8/logs/error_detail_%s.log", date);
|
| | |
|
| | | OutputStream out = null;
|
| | |
|
| | |
| | | e.printStackTrace();
|
| | | String date = TimeUtil.getGernalTime(System.currentTimeMillis(), "yyyy_MM_dd");
|
| | | String os = System.getProperty("os.name");
|
| | | String filePath = String.format("/usr/local/tomcat8/logs/error_detail_%s.txt", date);
|
| | | String filePath = String.format("/usr/local/tomcat8/logs/error_detail_%s.log", date);
|
| | | if (os.toLowerCase().startsWith("win")) {
|
| | | filePath = String.format("C:/logs/error_detail_%s.txt", date);
|
| | | filePath = String.format("C:/logs/error_detail_%s.log", date);
|
| | | } else
|
| | | filePath = String.format("/usr/local/tomcat8/logs/error_detail_%s.txt", date);
|
| | | filePath = String.format("/usr/local/tomcat8/logs/error_detail_%s.log", date);
|
| | | OutputStream out = null;
|
| | | try {
|
| | | out = new FileOutputStream(new File(filePath), true);
|