| | |
| | | |
| | | if (logFile == null) |
| | | { |
| | | logFile = new File(UpgradeUtils.getInstancePath() + File.separator + LOGDIR + File.separator + UPGRADELOGNAME); |
| | | logFile = new File(UpgradeUtils.getInstancePath() + File.separator + Installation.LOGS_PATH_RELATIVE |
| | | + File.separator + UPGRADELOGNAME); |
| | | } |
| | | try |
| | | { |
| | |
| | | public String format(LogRecord record) |
| | | { |
| | | // Format the log ~like the errors logger. |
| | | StringBuffer sb = new StringBuffer(); |
| | | StringBuilder sb = new StringBuilder(); |
| | | final SimpleDateFormat dateFormat = |
| | | new SimpleDateFormat("[dd/MMM/yyyy:HH:mm:ss Z]"); |
| | | sb.append(dateFormat.format(record.getMillis())).append(SPACE); |
| | |
| | | .getMessage())); |
| | | } |
| | | } |
| | | |
| | | static String getLogFilePath() |
| | | { |
| | | try |
| | | { |
| | | return logFile.getCanonicalPath(); |
| | | } |
| | | catch (IOException e) |
| | | { |
| | | return logFile.getPath(); |
| | | } |
| | | } |
| | | } |