|
Lines 240-245
Link Here
|
| 240 |
|
240 |
|
| 241 |
PrintStream summaryLogStream = new PrintStream(new FileOutputStream(summaryFile, true)); |
241 |
PrintStream summaryLogStream = new PrintStream(new FileOutputStream(summaryFile, true)); |
| 242 |
|
242 |
|
|
|
243 |
summaryLogStream.println("<html><body>"); |
| 243 |
summaryLogStream.println("<h2>Mylar Community Usage Statistics</h2>"); |
244 |
summaryLogStream.println("<h2>Mylar Community Usage Statistics</h2>"); |
| 244 |
summaryLogStream.println("These statistics are updated once per day. They were last updated at " |
245 |
summaryLogStream.println("These statistics are updated once per day. They were last updated at " |
| 245 |
+ DateFormat.getTimeInstance(DateFormat.DEFAULT).format(Calendar.getInstance().getTime()) + " " |
246 |
+ DateFormat.getTimeInstance(DateFormat.DEFAULT).format(Calendar.getInstance().getTime()) + " " |
|
Lines 293-299
Link Here
|
| 293 |
|
294 |
|
| 294 |
summaryLogStream.println("<b>" + " " + MAX_NUM_COMMANDS_TO_REPORT + " most used commands: </b>"); |
295 |
summaryLogStream.println("<b>" + " " + MAX_NUM_COMMANDS_TO_REPORT + " most used commands: </b>"); |
| 295 |
|
296 |
|
| 296 |
//Commands |
297 |
// Commands |
| 297 |
summaryLogStream.println("<table border=1 rules=rows|columns cellpadding=4>"); |
298 |
summaryLogStream.println("<table border=1 rules=rows|columns cellpadding=4>"); |
| 298 |
|
299 |
|
| 299 |
List<String> commandUsage = new ArrayList<String>(); |
300 |
List<String> commandUsage = new ArrayList<String>(); |
|
Lines 331-336
Link Here
|
| 331 |
} |
332 |
} |
| 332 |
|
333 |
|
| 333 |
summaryLogStream.println("</table>"); |
334 |
summaryLogStream.println("</table>"); |
|
|
335 |
summaryLogStream.println("</html></body>"); |
| 334 |
summaryLogStream.close(); |
336 |
summaryLogStream.close(); |
| 335 |
} catch (IOException e) { |
337 |
} catch (IOException e) { |
| 336 |
logError(e.getMessage()); |
338 |
logError(e.getMessage()); |